Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

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

This property map applies the identity function, that is, it just returns a copy of the key object that was input.

Where Defined


Model of

Readable Property Map

Associated Types

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

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

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 (
Lie-Quan Lee, Univ.of Notre Dame (
Andrew Lumsdaine, Univ.of Notre Dame (