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

This is an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function value

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

Synopsis

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