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

A generator that wraps expressions passed to it in the specified extension wrapper. More...

#include <proto_fwd.hpp>

Inheritance diagram for boost::proto::generator< Extends >:

Classes

struct  result
 
struct  result< This(Expr &)>
 
struct  result< This(Expr const &)>
 
struct  result< This(Expr)>
 

Public Member Functions

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

Detailed Description

template<template< typename > class Extends>
struct boost::proto::generator< Extends >

A generator that wraps expressions passed to it in the specified extension wrapper.

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. generator<> wraps each expression passed to it in the Extends<> wrapper.

Member Function Documentation

template<template< typename > class Extends>
template<typename Expr >
BOOST_FORCEINLINE Extends<Expr> boost::proto::generator< Extends >::operator() ( Expr const &  e) const
inline
Parameters
exprA Proto expression
Returns
Extends<Expr>(expr)

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