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 the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function right

boost::proto::right — Return the right child of the specified binary Proto expression.

Synopsis

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

Description

Return the right child of the specified binary Proto expression. The child is returned by reference.

Parameters:

expr

The Proto expression.

Requires:

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

2 == Expr::proto_arity::value

Returns:

A reference to the right child of expr.

Throws:

Will not throw.

PrevUpHomeNext