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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
C++ Boost

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

TypeDescription
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

MemberDescription
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

MemberDescription
template <class T>
T get(const identity_property_map& pmap, T x)
Returns a copy of object x.


Copyright © 2000 Jeremy Siek, Univ.of Notre Dame (jsiek@lsc.nd.edu)
Lie-Quan Lee, Univ.of Notre Dame (llee1@lsc.nd.edu)
Andrew Lumsdaine, Univ.of Notre Dame (lums@lsc.nd.edu)