Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function value

boost::proto::value — Return the value stored within the specified Proto terminal expression.

Synopsis

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


template<typename Expr> 
  typename proto::result_of::value< Expr & >::type value(Expr & expr);
template<typename Expr> 
  typename proto::result_of::value< Expr const & >::type 
  value(Expr const & expr);

Description

Return the the value stored within the specified Proto terminal expression. The value is returned by reference.

Requires:

0 == Expr::proto_arity::value

Returns:

A reference to the terminal's value

Throws:

Will not throw.

PrevUpHomeNext