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

Value-Transforming Property Map Adaptor

Boost , ,

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

C++ Boost

transform_value_property_map<UnaryFunction, PM, Ref>

This property map is an adaptor that composes a function object after an existing property map. The new property map will model either Readable Property Map or a Lvalue Property Map. The category of the property map is based on whether the function's return type (as given by Ref) is a non-const reference type.

Where Defined

boost/property_map/transform_value_property_map.hpp

Model Of

Readable Property Map or Lvalue Property Map

Template Parameters

ParameterDescriptionDefault
UnaryFunction Должна быть модельУнарная функция, принимающая объект типаProperty_traits< PM>:: ссылкаВ качестве аргумента и возвращает результат типаRef.  
ТЧ Карта базовых свойств.  
Ref Тип результата функции. boost::result_of::ссылка)>::тип

Members

In addition to the methods and functions required by Readable Property Map or Lvalue Property Map, this class has the following members:


property_traits<transform_value_property_map>::value_type
The type Ref with any reference or cv-qualifiers removed.
transform_value_property_map(const UnaryFunction& f, const PM& pm);
Constructor.

Non-Member functions


  template <class PM, class UnaryFunction>
  transform_value_property_map<UnaryFunction, PM>
  make_transform_value_property_map(const UnaryFunction& f, const PM& pm);
Returns a transform_value_property_map using the given function and property map type.
  template <class Ref, class PM, class UnaryFunction>
  transform_value_property_map<UnaryFunction, PM, Ref>
  make_transform_value_property_map(const UnaryFunction& f, const PM& pm);
Returns a transform_value_property_map using the given function and property map, explicitly giving the function's result type.


Copyright © 2012Попечители Университета Индианы

Статья Value-Transforming Property Map Adaptor раздела может быть полезна для разработчиков на c++ и boost.




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 22:34:32/0.0079319477081299/1