Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct right

boost::proto::functional::right — A callable PolymorphicFunctionObject that is equivalent to the proto::right() function.

Synopsis

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


struct right :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Expr> 
  struct result<> :  proto::result_of::right< Expr > {
  };

  // public member functions
  template<typename Expr> 
    proto::result_of::right<  () ;
  template<typename Expr> 
    proto::result_of::right<  
    () ;
};

Description

right public member functions

  1. template<typename Expr> 
      proto::result_of::right<  
      ( expr) ;

    Return the right child of the given binary expression.

    Parameters:

    expr

    The expression node.

    Requires:

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

    2 == Expr::proto_arity::value

    Returns:

    proto::right(expr)

    Throws:

    Will not throw.
  2. template<typename Expr> 
      proto::result_of::right<  
      ( expr) ;

PrevUpHomeNext