Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct _byval

boost::proto::_byval — A unary callable PolymorphicFunctionObject that strips references and boost::reference_wrapper<> from its argument.

Synopsis

// In header: <boost/proto/transform/arg.hpp>


struct _byval :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename T> 
  struct result<> :   {
  };
  template<typename This, typename T> 
  struct result<> :   {
  };
  template<typename This, typename T> 
  struct result<> {
    // types
    typedef  ;
  };

  // public member functions
  template<typename T>  () ;
  template<typename T> 
     () ;
};

Description

Example:

proto::terminal<proto::when<proto::_, proto::_state)>()(

_byval public member functions

  1. template<typename T>  ( t) ;

    Parameters:

    t

    The object to unref

    Returns:

    t

    Throws:

    Will not throw.
  2. template<typename T> 
       ( t) ;

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


PrevUpHomeNext