...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
function_property_map
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.
boost/property_map/function_property_map.hpp
Parameter | Description | Default |
---|---|---|
UnaryFunction | Must be a model of Unary Function that accepts an object of type Key as an argument and returns a result of type Ref. | |
Key | The key type of the property map. | |
Ref | The result type of the function. | 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_traitsThe type Ref with any reference or cv-qualifiers removed.::value_type
function_property_map(const UnaryFunction& f = UnaryFunction())Constructor.
templateReturns a function_property_map using the given function and key type.function_property_map make_function_property_map(const UnaryFunction& f);
templateReturns a function_property_map using the given function and key and reference types.function_property_map make_function_property_map(const UnaryFunction& f);
Copyright © 2012 | Trustees of Indiana University |