Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::_byref Struct Reference

A unary CallableTransform that wraps its argument in a boost::reference_wrapper<>. More...

#include <arg.hpp>

Inheritance diagram for boost::proto::_byref:
Collaboration diagram for boost::proto::_byref:

Classes

struct  result
 
struct  result< This(T &)>
 
struct  result< This(T)>
 

Public Types

typedef void proto_is_callable_
 

Public Member Functions

template<typename T >
boost::reference_wrapper< T > const operator() (T &t) const
 Wrap the parameter t in a boost::reference_wrapper<> More...
 
template<typename T >
boost::reference_wrapper< T
const > const 
operator() (T const &t) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 

Detailed Description

Member Typedef Documentation

Member Function Documentation

template<typename T >
boost::reference_wrapper<T> const boost::proto::_byref::operator() ( T t) const
inline

Wrap the parameter t in a boost::reference_wrapper<>

Parameters
tThe object to wrap
Returns
boost::ref(t)
Exceptions
nothrow

References boost::flyweights::t.

template<typename T >
boost::reference_wrapper<T const> const boost::proto::_byref::operator() ( T const &  t) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

References boost::flyweights::t.


The documentation for this struct was generated from the following file: