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

Struct as_env

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 as_env

boost::proto::functional::as_env — A unary PolymorphicFunctionObject for ensuring that an object is a transform environment. If it isn't already, it is turned into one such that the object is associated with the proto::data_type key.

Synopsis

// In header: <boost/proto/transform/env.hpp>

struct as_env :  proto::callable {
  // member classes/structs/unions
  template<typename Sig> 
  struct result {
    // types
    typedef see-below type;
  };
  // public member functions
  template<typename T> see-below operator()(T &) const;
  template<typename T> see-below operator()(T const &) const;
};

Description

as_env public member functions

  1. <
    template<typenameT>see-belowoperator()(T&t)const;
    template<typenameT>see-belowoperator()(Tconst&t)const;
    >

    Если<proto::is_env<T>::value>является<false>, то эта функция возвращает результат<(proto::data= t)>. См.<proto::data_type::operator=>Подробности.

    В противном случае эта функция возвращается<t>посредством ссылки.


PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 00:30:54/0.0049240589141846/1