Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
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<long N, typename Expr> 
  typename proto::result_of::child_c< Expr &, N >::type child_c(Expr & expr);
template<long N, typename Expr> 
  typename proto::result_of::child_c< Expr const &, N >::type 
  child_c(Expr const & 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