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::child< N > Struct Template Reference

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

#include <traits.hpp>

Classes

struct  result
 
struct  result< This(Expr)>
 

Public Member Functions

template<typename Expr >
BOOST_FORCEINLINE
result_of::child< Expr &, N >
::type 
operator() (Expr &e) const
 Return the Nth child of the given expression. More...
 
template<typename Expr >
BOOST_FORCEINLINE
result_of::child< Expr const
&, N >::type 
operator() (Expr const &e) 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 N>
struct boost::proto::functional::child< N >

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

A callable PolymorphicFunctionObject that is equivalent to the child() function. N is required to be an MPL Integral Constant.

Member Function Documentation

template<typename N >
template<typename Expr >
BOOST_FORCEINLINE result_of::child<Expr &, N>::type boost::proto::functional::child< N >::operator() ( Expr &  e) const
inline

Return the Nth child of the given expression.

Parameters
exprThe expression node.
Precondition
is_expr<Expr>value is true
N::value < Expr::proto_arity::value
Returns
proto::child<N>(expr)
Exceptions
nothrow

References boost::spirit::x3::detail::call().

template<typename N >
template<typename Expr >
BOOST_FORCEINLINE result_of::child<Expr const &, N>::type boost::proto::functional::child< N >::operator() ( Expr const &  e) 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::spirit::x3::detail::call().


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