3 Copyright 2006 The Trustees of Indiana University
5 Use, modification and distribution is subject to the Boost Software
6 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
11 <Title>Reference Property Map
</Title>
12 <BODY BGCOLOR=
"#ffffff" LINK=
"#0000ee" TEXT=
"#000000" VLINK=
"#551a8b"
14 <IMG SRC=
"../../../boost.png"
15 ALT=
"C++ Boost" width=
"277" height=
"86">
19 <H2><A NAME=
"sec:identity-property-map"></A>
22 template
<typename KeyType, typename ValueType
>
23 class ref_property_map
26 This property map wraps a reference to some particular object, and
27 returns that reference whenever a key object is input.
29 <H3>Where Defined
</H3>
32 <a href=
"../../../boost/property_map/property_map.hpp"><TT>boost/property_map/property_map.hpp
</TT></a>
36 <a href=
"./LvaluePropertyMap.html">Lvalue Property Map
</a>
38 <h3>Associated Types
</h3>
42 <th>Type
</th><th>Description
</th>
47 boost::property_traits
<ref_property_map
>::value_type
50 This type is the
<tt>ValueType
</tt> with which the template was instantiated.
56 boost::property_traits
<ref_property_map
>::key_type
59 This type is the
<tt>KeyType
</tt> with which the template was instantiated.
65 boost::property_traits
<ref_property_map
>::category
68 This type is
<tt>boost::lvalue_property_map_tag
</tt>.
74 <h3>Member Functions
</h3>
78 <th>Member
</th><th>Description
</th>
84 ref_property_map(ValueType
& v)
87 The constructor for ref_property_map is provided the reference that
88 the property map will return when queried.
94 ref_property_map(const ref_property_map
& x)
103 ValueType
& operator[](KeyType const
&) const
106 Returns the contained reference.