Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct value

boost::proto::functional::value — A callable PolymorphicFunctionObject that is equivalent to the proto::value() function.

Synopsis

// In header: <boost/proto/traits.hpp>


struct value :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Expr> 
  struct result<> :  proto::result_of::value< Expr > {
  };

  // public member functions
  template<typename Expr> 
    proto::result_of::value<  () ;
  template<typename Expr> 
    proto::result_of::value<  
    () ;
};

Description

value public member functions

  1. template<typename Expr> 
      proto::result_of::value<  
      ( expr) ;

    Return the value of the given terminal expression.

    Parameters:

    expr

    The terminal expression node.

    Requires:

    proto::is_expr<Expr>::value is true

    0 == Expr::proto_arity::value

    Returns:

    proto::value(expr)

    Throws:

    Will not throw.
  2. template<typename Expr> 
      proto::result_of::value<  
      ( expr) ;

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


PrevUpHomeNext