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

Function 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

function_property_map<UnaryFunction, Key, Ref>

This property map is an adaptor that converts a function object into either a 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/function_property_map.hpp

Model Of

Readable Property Map or Lvalue Property Map

Template Parameters

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

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<function_property_map>::value_type
The type Ref with any reference or cv-qualifiers removed.
function_property_map(const UnaryFunction& f = UnaryFunction())
Constructor.

Non-Member functions


  template <class Key, class UnaryFunction>
  function_property_map<UnaryFunction, Key>
  make_function_property_map(const UnaryFunction& f);
Returns a function_property_map using the given function and key type.
  template <class Key, class Ref, class UnaryFunction>
  function_property_map<UnaryFunction, Key, Ref>
  make_function_property_map(const UnaryFunction& f);
Returns a function_property_map using the given function and key and reference types.


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

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 20:07:22/0.0060288906097412/0