Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::functional::as_child< Domain > Struct Template Reference

A callable PolymorphicFunctionObject that is equivalent to the as_child() function. More...

#include <traits.hpp>

Classes

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

Public Member Functions

template<typename T >
BOOST_FORCEINLINE add_const
< typename result< as_child(T &)>
::type >::type 
operator() (T &t) const
 Wrap an object in a Proto terminal if it isn't a Proto expression already. More...
 
template<typename T >
BOOST_FORCEINLINE add_const
< typename result< as_child(T
const &)>::type >::type 
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

template<typename Domain>
struct boost::proto::functional::as_child< Domain >

A callable PolymorphicFunctionObject that is equivalent to the as_child() function.

Member Function Documentation

template<typename Domain >
template<typename T >
BOOST_FORCEINLINE add_const<typename result<as_child(T &)>::type>::type boost::proto::functional::as_child< Domain >::operator() ( T t) const
inline

Wrap an object in a Proto terminal if it isn't a Proto expression already.

Parameters
tThe object to wrap.
Returns
proto::as_child<Domain>(t)

References template.

template<typename Domain >
template<typename T >
BOOST_FORCEINLINE add_const<typename result<as_child(T const &)>::type>::type boost::proto::functional::as_child< Domain >::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 template.


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