![]() |
Home | Libraries | People | FAQ | More |
boost::proto::_byref — A unary callable PolymorphicFunctionObject that wraps its argument
in a boost::reference_wrapper<>
.
// In header: <boost/proto/transform/arg.hpp> struct _byref : proto::callable { // member classes/structs/unions template<typename This, typename T> struct result<> { // types typedef ; }; template<typename This, typename T> struct result<> { // types typedef ; }; // public member functions template<typename T> () ; template<typename T> () ; };
Example:
proto::terminal<proto::terminal<proto::when<proto::_,
_byref
public member functionstemplate<typename T> ( t) ;
Wrap the parameter t
in a
boost::reference_wrapper<>
Parameters: |
|
||
Returns: |
|
||
Throws: |
Will not throw. |
template<typename T> ( t) ;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.