mirror of
https://github.com/boostorg/property_map.git
synced 2026-02-01 08:42:16 +00:00
150 lines
2.9 KiB
HTML
150 lines
2.9 KiB
HTML
<HTML>
|
|
<!--
|
|
-- Copyright (c) Jeremy Siek, Lie-Quan Lee, and Andrew Lumsdaine 2000
|
|
--
|
|
-- Permission to use, copy, modify, distribute and sell this software
|
|
-- and its documentation for any purpose is hereby granted without fee,
|
|
-- provided that the above copyright notice appears in all copies and
|
|
-- that both that copyright notice and this permission notice appear
|
|
-- in supporting documentation. We make no
|
|
-- representations about the suitability of this software for any
|
|
-- purpose. It is provided "as is" without express or implied warranty.
|
|
-->
|
|
<Head>
|
|
<Title>Identity Property Map</Title>
|
|
<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
|
|
ALINK="#ff0000">
|
|
<IMG SRC="../../c++boost.gif"
|
|
ALT="C++ Boost" width="277" height="86">
|
|
|
|
<BR Clear>
|
|
|
|
<H2><A NAME="sec:identity-property-map"></A>
|
|
</h2>
|
|
<PRE>
|
|
identity_property_map
|
|
</PRE>
|
|
|
|
This property map applies the identity function, that is, it just
|
|
returns a copy of the key object that was input.
|
|
|
|
<H3>Where Defined</H3>
|
|
|
|
<P>
|
|
<a href="../../boost/property_map.hpp"><TT>boost/property_map.hpp</TT></a>
|
|
|
|
<h3>Model of</h3>
|
|
|
|
<a href="./ReadablePropertyMap.html">Readable Property Map</a>
|
|
|
|
<h3>Associated Types</h3>
|
|
|
|
<table border>
|
|
<tr>
|
|
<th>Type</th><th>Description</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt>
|
|
boost::property_traits<identity_property_map>::value_type
|
|
</tt></td>
|
|
<td>
|
|
This type is <tt>void</tt>; the map functions are templated.
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt>
|
|
boost::property_traits<identity_property_map>::key_type
|
|
</tt></td>
|
|
<td>
|
|
This type is <tt>void</tt>; the map functions are templated.
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt>
|
|
boost::property_traits<identity_property_map>::category
|
|
</tt></td>
|
|
<td>
|
|
This type is <tt>boost::readable_op_bracket_tag</tt>.
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Member Functions</h3>
|
|
|
|
<table border>
|
|
<tr>
|
|
<th>Member</th><th>Description</th>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td><tt>
|
|
identity_property_map()
|
|
</tt></td>
|
|
<td>
|
|
Default constructor.
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt>
|
|
identity_property_map(const identity_property_map& x)
|
|
</tt></td>
|
|
<td>
|
|
Copy constructor.
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt>
|
|
template <class T><br>
|
|
T operator[](T x) const
|
|
</tt></td>
|
|
<td>
|
|
Returns a copy of object <tt>x</tt>.
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Non-Member Functions</h3>
|
|
|
|
<table border>
|
|
<tr>
|
|
<th>Member</th><th>Description</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><tt>
|
|
template <class T><br>
|
|
T get(const identity_property_map& pmap, T x)
|
|
</tt></td>
|
|
<td>
|
|
Returns a copy of object <tt>x</tt>.
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
<br>
|
|
<HR>
|
|
<TABLE>
|
|
<TR valign=top>
|
|
<TD nowrap>Copyright © 2000</TD><TD>
|
|
<a HREF="../../people/jeremy_siek.htm">Jeremy Siek</a>,
|
|
Univ.of Notre Dame (<A
|
|
HREF="mailto:jsiek@lsc.nd.edu">jsiek@lsc.nd.edu</A>)<br>
|
|
<A HREF=http://www.lsc.nd.edu/~llee1>Lie-Quan Lee</A>, Univ.of Notre Dame (<A HREF="mailto:llee1@lsc.nd.edu">llee1@lsc.nd.edu</A>)<br>
|
|
<A HREF=http://www.lsc.nd.edu/~lums>Andrew Lumsdaine</A>,
|
|
Univ.of Notre Dame (<A
|
|
HREF="mailto:lums@lsc.nd.edu">lums@lsc.nd.edu</A>)
|
|
</TD></TR></TABLE>
|
|
|
|
</BODY>
|
|
</HTML>
|