Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Struct template compose_generators

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Struct template compose_generators

boost::proto::compose_generators — A composite generator that first applies one transform to an expression and then forwards the result on to another generator for further transformation.

Synopsis

// In header: <boost/proto/generate.hpp>
template<typename First, typename Second> 
struct compose_generators :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Expr> 
  struct result<This(Expr)> :  
    boost::result_of<
      Second(typename boost::result_of<First(Expr)>::type)
    >
  {
  };
  // public member functions
  template<typename Expr> 
    typename boost::result_of<
      Second(typename boost::result_of<First(Expr)>::type)
    >::type 
    operator()(Expr const &) const;
};

Description

Генераторы предназначены для использования в качестве первого параметра шаблона для шаблона класса<proto::domain<>>и контроля того, следует ли настраивать выражения в этом домене.<proto::compose_generators<>>является составным генератором, который сначала применяет одно преобразование к выражению, а затем передает результат другому генератору для дальнейшего преобразования.

compose_generators public member functions

  1. <
    template<typenameExpr>
     typenameboost::result_of<
         Second(typenameboost::result_of<First(Expr)>::type)
       >::type
     operator()(Exprconst&expr)const;
    >

    Параметры:

    <expr>

    Прото-выражение.

    Возвращение:

    <Second()(First()(expr))>


    PrevUpHomeNext

    Статья Struct template compose_generators раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.




    Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



    :: Главная :: Reference ::


    реклама


    ©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
    Top.Mail.Ru

    Время компиляции файла: 2024-08-30 11:47:00
    2025-05-19 23:52:13/0.0082440376281738/1