3 Copyright (c) Jeremy Siek, Lie-Quan Lee, and Andrew Lumsdaine 2000, Alex Hagen-Zanker (2012)
5 Distributed under the Boost Software License, Version 1.0.
6 (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
10 <Title>Identity Property Map
</Title>
11 <BODY BGCOLOR=
"#ffffff" LINK=
"#0000ee" TEXT=
"#000000" VLINK=
"#551a8b"
13 <IMG SRC=
"../../../boost.png"
14 ALT=
"C++ Boost" width=
"277" height=
"86">
18 <H2><A NAME=
"sec:identity-property-map"></A> </h2>
21 boost::typed_identity_property_map
<T
>
23 typedef boost::typed_identity_propoperty_map
<std::size_t
> boost::identity_property_map
26 <p>The
<code>typed_identity_property_map
</code> property map applies the identity function, that is, it just returns a copy of the key object that was input. The key and value types are both the same as the template parameter
<code>T
</code>. The
<code>identity_property_map
</code> name is for the common case where the key and value type are
<code>std::size_t
</code> (this name is deprecated for use within Boost.Graph).
</p>
27 <p><em>Note:
</em> Previously the function
<code>get()
</code> and
<code>operator[]
</code> for
<code>identity_property_map
</code> were overloaded to return a copy of keys of any type, i.e., not just
<code>size_t
</code>. These overloads are now deprecated, because they did not adhere to the property map concepts.
</p>
29 <H3>Where Defined
</H3>
32 <a href=
"../../../boost/property_map/property_map.hpp"><TT>boost/property_map/property_map.hpp
</TT></a>
37 <a href=
"./ReadablePropertyMap.html">Readable Property Map
</a>
39 <h3>Template Parameters
</h3>
48 <TD>Must be Copy Contructible
</TD>
52 <h3>Associated Types
</h3>
56 <th>Type
</th><th>Description
</th>
61 boost::property_traits
<typed_identity_property_map
<T
> >::value_type
64 This type is
<tt>T
</tt>.
</td>
69 boost::property_traits
<typed_identity_property_map
<T
> >::key_type
72 This type is
<tt>T
</tt>.
</td>
77 boost::property_traits
<typed_identity_property_map
<T
> >::reference
80 This type is
<tt>T
</tt>..
</td>
85 boost::property_traits
<typed_identity_property_map
<T
> >::category
88 This type is
<tt>boost::readable_property_map_tag
</tt>.
94 <h3>Member Functions
</h3>
98 <th>Member
</th><th>Description
</th>
104 typed_identity_property_map()
113 typed_identity_property_map(const typed_identity_property_map
<T
>& x)
122 T operator[](const T
& x) const
125 Returns a copy of object
<tt>x
</tt>.
131 <h3>Non-Member Functions
</h3>
135 <th>Member
</th><th>Description
</th>
139 <td><tt> T get(const typed_identity_property_map
<T
>& pmap, const T
& x)
142 Returns a copy of object
<tt>x
</tt>.
153 <TD nowrap
>Copyright
© 2000-
2012</TD><TD>
154 <a HREF=
"http://www.boost.org/people/jeremy_siek.htm">Jeremy Siek
</a>,
155 Univ.of Notre Dame (
<A
156 HREF=
"mailto:jsiek@lsc.nd.edu">jsiek@lsc.nd.edu
</A>)
<br>
157 <A HREF=
"http://www.boost.org/people/liequan_lee.htm">Lie-Quan Lee
</A>, Univ. of Notre Dame (
<A HREF=
"mailto:llee1@lsc.nd.edu">llee1@lsc.nd.edu
</A>)
<br>
158 <A HREF=
"http://www.lsc.nd.edu/~lums">Andrew Lumsdaine
</A>,
159 Univ.of Notre Dame (
<A
160 HREF=
"mailto:lums@lsc.nd.edu">lums@lsc.nd.edu
</A>)
<br>
161 Alex Hagen-Zanker
</TD></TR></TABLE>