...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::terminal — A metafunction for generating terminal expression types, a grammar element for matching terminal expressions, and a PrimitiveTransform that returns the current expression unchanged.
template<typename T> struct terminal : proto::transform< terminal<T> > { // types typedef proto::expr< proto::tag::terminal, proto::term< T > > type; typedef type proto_base_expr; template<typename Expr, typename State, typename Data> struct impl : proto::transform_impl< Expr, State, Data > { // types typedef Expr result_type; // public member functions impl::expr_param operator()(typename impl::expr_param, typename impl::state_param, typename impl::data_param) const; }; };