Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function child_c

boost::proto::child_c — Return the Nth child of the specified Proto expression.

Synopsis

// In header: <boost/proto/traits.hpp>


template< N, typename Expr> 
  proto::result_of::child_c<  ( expr);
template< N, typename Expr> 
  proto::result_of::child_c<  
  ( expr);

Description

Return the Nth child of the specified Proto expression. The child is returned by reference.

Requires:

proto::is_expr<Expr>::value is true.

N < Expr::proto_arity::value

Returns:

A reference to the Nth child of expr.

Throws:

Will not throw.

PrevUpHomeNext