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

A unary CallableTransform that strips references and boost::reference_wrapper<> from its argument. More...

#include <arg.hpp>

Inheritance diagram for boost::proto::_byval:
Collaboration diagram for boost::proto::_byval:

Classes

struct  result
 
struct  result< This(boost::reference_wrapper< T >)>
 
struct  result< This(T &)>
 
struct  result< This(T)>
 

Public Types

typedef void proto_is_callable_
 

Public Member Functions

template<typename T >
T operator() (T const &t) const
 
template<typename T >
T operator() (boost::reference_wrapper< 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

A unary CallableTransform that strips references and boost::reference_wrapper<> from its argument.

Example:

Member Typedef Documentation

Member Function Documentation

template<typename T >
T boost::proto::_byval::operator() ( T const &  t) const
inline
Parameters
tThe object to unref
Returns
t
Exceptions
nothrow

References boost::flyweights::t.

template<typename T >
T boost::proto::_byval::operator() ( boost::reference_wrapper< 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: