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

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

#include <traits.hpp>

Classes

struct  result
 
struct  result< This(Expr)>
 

Public Member Functions

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

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

Member Function Documentation

template<long N>
template<typename Expr >
BOOST_FORCEINLINE result_of::child_c<Expr &, N>::type boost::proto::functional::child_c< 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 < Expr::proto_arity::value
Returns
proto::child_c<N>(expr)
Exceptions
nothrow

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

template<long N>
template<typename Expr >
BOOST_FORCEINLINE result_of::child_c<Expr const &, N>::type boost::proto::functional::child_c< 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: