![]() |
Home | Libraries | People | FAQ | More |
boost::proto::functional::value — A callable PolymorphicFunctionObject that is equivalent to the proto::value() function.
// In header: <boost/proto/traits.hpp> struct value : proto::callable { template<typename This, typename Expr> struct result<This(Expr)> : proto::result_of::value< Expr > { }; // public member functions template<typename Expr> typename proto::result_of::value< Expr & >::type operator()(Expr &) const; template<typename Expr> typename proto::result_of::value< Expr const & >::type operator()(Expr const &) const; };
template<typename Expr> typename proto::result_of::value< Expr & >::type operator()(Expr & expr) const;
Return the value of the given terminal expression.
| Parameters: |
|
||
| Requires: |
proto::is_expr<Expr>::value is true 0 == Expr::proto_arity::value |
||
| Returns: | proto::value(expr) |
||
| Throws: | Will not throw. |
template<typename Expr> typename proto::result_of::value< Expr const & >::type operator()(Expr const & expr) const;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.