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

Struct template as_child

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 as_child

boost::proto::functional::as_child — A callable PolymorphicFunctionObject that is equivalent to the proto::as_child() function.

Synopsis

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

Description

as_child public member functions

  1. <
    template<typenameT>
     typenameproto::result_of::as_child<T,Domain>::type
     operator()(T&t)const;
    >

    Оберните объект в терминал Proto, если он еще не является выражением Proto.

    Параметры:

    <t>

    Предмет оборачивается.

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

    <proto::as_child<Domain>(t)>

  2. <
    template<typenameT>
     typenameproto::result_of::as_child<Tconst,Domain>::type
     operator()(Tconst&t)const;
    >

    Это перегруженная функция члена, предусмотренная для удобства. Он отличается от вышеуказанной функции только тем, какие аргументы он принимает.


PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-07-05 15:47:50/0.0036640167236328/0