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

A generator that wraps expressions passed to it in the specified extension wrapper and uses aggregate initialization for the wrapper. More...

#include <proto_fwd.hpp>

Inheritance diagram for boost::proto::pod_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::pod_generator< Extends >

A generator that wraps expressions passed to it in the specified extension wrapper and uses aggregate initialization for the 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. pod_generator<> wraps each expression passed to it in the Extends<> wrapper, and uses aggregate initialzation for the wrapped object.

Member Function Documentation

template<template< typename > class Extends>
template<typename Expr >
BOOST_FORCEINLINE Extends<Expr> boost::proto::pod_generator< Extends >::operator() ( Expr const &  e) const
inline
Parameters
exprThe expression to wrap
Returns
Extends<Expr> that = {expr}; return that;

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