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

Click here to view the latest version of this page.
PrevUpHomeNext

Struct template _default

boost::proto::_default — A PrimitiveTransform that gives expressions their usual C++ behavior

Synopsis

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

template<typename Grammar> 
struct _default :  proto::transform< _default<Grammar> > {
  template<typename Expr, typename State, typename Data> 
  struct impl :  proto::transform_impl<Expr, State, Data> {
    // types
    typedef typename Expr::tag_type Tag;          // For exposition only
    typedef see-below result_type;

    // public member functions
    result_type operator()(typename impl::expr_param, 
                           typename impl::state_param, 
                           typename impl::data_param) const;
    static Expr s_expr;
    static State s_state;
    static Data s_data;
  };
};

Description

For the complete description of the behavior of the proto::_default transform, see the documentation for the nested proto::_default::impl<> class template.


PrevUpHomeNext