![]() |
Home | Libraries | People | FAQ | More |
boost::proto::functional::as_child —
A callable PolymorphicFunctionObject that is equivalent to the
proto::as_child()
function.
// In header: <boost/proto/traits.hpp> template<typename Domain = proto::default_domain> struct as_child : proto::callable { // member classes/structs/unions template<typename This, typename T> struct result<> : proto::result_of::as_child< { }; // public member functions template<typename T> proto::result_of::as_child< () ; template<typename T> proto::result_of::as_child< () ; };
as_child
public member functionstemplate<typename T> proto::result_of::as_child< ( t) ;
Wrap an object in a Proto terminal if it isn't a Proto expression already.
Parameters: |
|
||
Returns: |
|
template<typename T> proto::result_of::as_child< ( t) ;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.