Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template nullary_expr

boost::proto::nullary_expr — A metafunction for generating nullary expression types, a grammar element for matching nullary expressions, and a PrimitiveTransform that returns the current expression unchanged.

Synopsis

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

template<typename Tag, typename T> 
struct nullary_expr :  proto::transform<  {
  // types
  typedef proto::expr< proto::term<        ;         
  typedef proto::basic_expr< proto::term<  ;

  // member classes/structs/unions
  template<typename Expr, typename State, typename Data> 
  struct impl :  proto::transform_impl<  {
    // types
    typedef  ;

    // public member functions
     (, , 
                    ) ;
  };
};

Description

Use proto::nullary_expr<proto::_, proto::_> as a grammar element to match any nullary expression.


PrevUpHomeNext