Struct template generator
boost::proto::generator — A generator that wraps expressions passed to it in the specified extension wrapper.
 
Synopsis
template<template< typename > class Extends> 
struct generator {
  
  template<typename This, typename Expr> 
  struct result<This(Expr)> {
    
    typedef Extends< Expr > type;
  };
  
  template<typename Expr> Extends< Expr > operator()(Expr const &) const;
};
Description
Генераторы предназначены для использования в качестве первого параметра шаблона для шаблона класса<proto::domain<>>и контроля того, следует ли настраивать выражения в этом домене.<proto::generator<>>обертывает каждое выражение, переданное ему в обертке<Extends<>>.
generator public member functions
- <template<typenameExpr>Extends<Expr>operator()(Exprconst&expr)const; >| Параметры: |  |  | Возвращение: | <Extends<Expr>(expr)> |