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 older version of Boost and was released in 2013. The current version is 1.89.0.
boost::proto::child — Return the Nth 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 Nth 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. |