Home | Libraries | People | FAQ | More |
boost::proto::child — Return the N
th child of the specified Proto expression.
// In header: <boost/proto/traits.hpp> template<typename N, typename Expr> typename proto::result_of::child< Expr &, N >::type child(Expr & expr); template<typename N, typename Expr> typename proto::result_of::child< Expr const &, N >::type child(Expr const & expr); template<typename Expr> typename proto::result_of::child< Expr & >::type child(Expr & expr); template<typename Expr> typename proto::result_of::child< Expr const & >::type child(Expr const & expr);
Return the N
th child of the specified Proto expression.
If N
is not specified, as in proto::child(expr)
,
then N
is assumed to be mpl::long_<0>
.
The child is returned by reference.
Parameters: |
|
||
Requires: |
|
||
Returns: |
A reference to the |
||
Throws: |
Will not throw. |