![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
Value-Transforming Property Map AdaptorBoost , ,
|
Parameter | Description | Default |
---|---|---|
UnaryFunction | Должна быть модельУнарная функция, принимающая объект типаProperty_traits< PM>:: ссылкаВ качестве аргумента и возвращает результат типаRef. | |
ТЧ | Карта базовых свойств. | |
Ref | Тип результата функции. | boost::result_of |
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_typeThe type Ref with any reference or cv-qualifiers removed.
transform_value_property_map(const UnaryFunction& f, const PM& pm);Constructor.
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.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: ::
реклама |