Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::basic_default_generator Struct Reference

A simple generator that passes an expression through unchanged and specifies a preference for proto::basic_expr<> over proto::expr<>. More...

#include <generate.hpp>

Inheritance diagram for boost::proto::basic_default_generator:
Collaboration diagram for boost::proto::basic_default_generator:

Public Member Functions

template<typename Expr >
BOOST_FORCEINLINE operator() (Expr const &e) const
 

Detailed Description

A simple generator that passes an expression through unchanged and specifies a preference for proto::basic_expr<> over proto::expr<>.

Generators are intended for use as the first template parameter to the domain<> class template and control if and how expressions within that domain are to be customized. The default_generator makes no modifications to the expressions passed to it.

Member Function Documentation

template<typename Expr >
BOOST_FORCEINLINE boost::proto::default_generator::operator() ( Expr const &  e) const
inlineinherited
Parameters
exprA Proto expression
Returns
expr

The documentation for this struct was generated from the following file: