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

Struct template unpack_expr

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 unpack_expr

boost::proto::functional::unpack_expr — A PolymorphicFunctionObject equivalent to the proto::unpack_expr() function.

Synopsis

// In header: <boost/proto/make_expr.hpp>
template<typename Tag, typename Domain = proto::deduce_domain> 
struct unpack_expr :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Sequence> 
  struct result<This(Sequence)> :  
    proto::result_of::unpack_expr<
      Tag,
      Domain,
      typename boost::remove_reference< Sequence >::type
    >
  {
  };
  // public member functions
  template<typename Sequence> 
    typename proto::result_of::unpack_expr< Tag, Domain, Sequence const >::type const 
    operator()(Sequence const &) const;
};

Description

Во всех случаях<proto::functional::unpack_expr<Tag, Domain>()(seq)>эквивалентно<proto::unpack_expr()<Tag, Domain>(seq)>.

<proto::functional::unpack_expr<Tag>()(seq)>эквивалентно<proto::unpack_expr()<Tag>(seq)>.

unpack_expr public member functions

  1. <
    template<typenameSequence>
     typenameproto::result_of::unpack_expr<Tag,Domain,Sequenceconst>::typeconst
     operator()(Sequenceconst&sequence)const;
    >

    Постройте узел выражения с типом тега<Tag>и в домене<Domain>.

    Параметры:

    <sequence>

    Последовательность слияний

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

    <proto::unpack_expr<Tag, Domain>(sequence)>


PrevUpHomeNext

Статья Struct template unpack_expr раздела 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:30:30/0.0081870555877686/1