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

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