...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::proto::functional::left — A callable PolymorphicFunctionObject that is equivalent to the
proto::left()
function.
// In header: <boost/proto/traits.hpp> struct left : proto::callable { // member classes/structs/unions template<typename This, typename Expr> struct result<This(Expr)> : proto::result_of::left< Expr > { }; // public member functions template<typename Expr> typename proto::result_of::left< Expr & >::type operator()(Expr &) const; template<typename Expr> typename proto::result_of::left< Expr const & >::type operator()(Expr const &) const; };
left
public member functionstemplate<typename Expr> typename proto::result_of::left< Expr & >::type operator()(Expr & expr) const;
Return the left child of the given binary expression.
Parameters: |
|
||
Requires: |
|
||
Returns: |
|
||
Throws: |
Will not throw. |
template<typename Expr> typename proto::result_of::left< Expr const & >::type operator()(Expr const & expr) const;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.