Boost C++ 库
...one of the most highly regarded and expertly designed C++ library projects in the world.
— Herb Sutter and Andrei Alexandrescu, C++ Coding Standards
boost::proto::child — 返回指定 Proto 表达式的第 N 个子表达式。
// 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);
返回指定 Proto 表达式的第 N 个子表达式。如果未指定 N,例如在 proto::child(expr) 中,则假定 N 为 mpl::long_<0>。子表达式通过引用返回。
参数 |
|
||
要求 |
|
||
返回 |
对 |
||
抛出 |
不会抛出异常。 |