identity_property_map
This property map applies the identity function, that is, it just
returns a copy of the key object that was input.
Where Defined
boost/property_map.hpp
Model of
Readable Property Map
Associated Types
Type | Description |
boost::property_traits<identity_property_map>::value_type
|
This type is std::size_t; the map functions are templated.
|
boost::property_traits<identity_property_map>::key_type
|
This type is std::size_t; the map functions are templated.
|
boost::property_traits<identity_property_map>::category
|
This type is boost::readable_op_bracket_tag.
|
Member Functions
Member | Description |
identity_property_map()
|
Default constructor.
|
identity_property_map(const identity_property_map& x)
|
Copy constructor.
|
template <class T>
T operator[](T x) const
|
Returns a copy of object x.
|
Non-Member Functions
Member | Description |
template <class T>
T get(const identity_property_map& pmap, T x)
|
Returns a copy of object x.
|
|