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> 
  proto::result_of::value<  ( expr);
template<typename Expr> 
  proto::result_of::value<  
  ( 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