]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/flyweight/doc/reference/tags.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / flyweight / doc / reference / tags.html
CommitLineData
7c673cae
FG
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0.1 Transitional//EN">
2
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>Boost.Flyweight Documentation - Tags reference</title>
7<link rel="stylesheet" href="../style.css" type="text/css">
8<link rel="start" href="../index.html">
9<link rel="prev" href="key_value.html">
10<link rel="up" href="index.html">
11<link rel="next" href="factories.html">
12</head>
13
14<body>
15<h1><img src="../../../../boost.png" alt="Boost logo" align=
16"middle" width="277" height="86">Boost.Flyweight
17Tags reference</h1>
18
19<div class="prev_link"><a href="key_value.html"><img src="../prev.gif" alt="key-value flyweights" border="0"><br>
20Key-value flyweights
21</a></div>
22<div class="up_link"><a href="index.html"><img src="../up.gif" alt="Boost.Flyweight reference" border="0"><br>
23Boost.Flyweight reference
24</a></div>
25<div class="next_link"><a href="factories.html"><img src="../next.gif" alt="factories" border="0"><br>
26Factories
27</a></div><br clear="all" style="clear: all;">
28
29<hr>
30
31<h2>Contents</h2>
32
33<ul>
34 <li><a href="#tag">Tags</a></li>
35 <li><a href="#tag_synopsis">Header
36 <code>"boost/flyweight/tag.hpp"</code> synopsis</a>
37 <ul>
38 <li><a href="#tag_construct">Class template <code>tag</code></a></li>
39 </ul>
40 </li>
41</ul>
42
43<h2><a name="tag">Tags</a></h2>
44
45<p>
46A <i>tag</i> is a type of the form
47<a href="#tag_construct"><code>tag&lt;T&gt;</code></a> for some arbitrary
48<code>T</code>.
49In the context of Boost.Flyweight, tags are syntactic artifacts used
50to differentiate instantiations of the class template
51<a href="flyweight.html#flyweight"><code>flyweight</code></a> which would
52otherwise be identical. Tagging a <code>flyweight</code> instantiation with
53a tag type local to a given context ensures that the global resources
54of that instantiation (for instance, the associated
55<a href="factories.html#factory">factory class</a>) will not be unintentionally
56shared by other areas of the program.
57</p>
58
59<h2><a name="tag_synopsis">Header
60<a href="../../../../boost/flyweight/tag.hpp"><code>"boost/flyweight/tag.hpp"</code></a> synopsis</a></h2>
61
62<blockquote><pre>
63<span class=keyword>namespace</span> <span class=identifier>boost</span><span class=special>{</span>
64
65<span class=keyword>namespace</span> <span class=identifier>flyweights</span><span class=special>{</span>
66
67<span class=keyword>template</span><span class=special>&lt;</span><span class=keyword>typename</span> <span class=identifier>T</span><span class=special>&gt;</span>
68<span class=keyword>struct</span> <span class=identifier>tag</span><span class=special>;</span>
69
70<span class=special>}</span> <span class=comment>// namespace boost::flyweights</span>
71
72<span class=special>}</span> <span class=comment>// namespace boost</span>
73</pre></blockquote>
74
75<h3><a name="tag_construct">Class template <code>tag</code></a></h3>
76
77<p>
78For any type <code>T</code>, <code>tag&lt;T&gt;</code> is a suitable
79<a href="#tag">tag</a> for use in instantiations of
80<a href="flyweight.html#flyweight"><code>flyweight</code></a>.
81</p>
82
83<hr>
84
85<div class="prev_link"><a href="key_value.html"><img src="../prev.gif" alt="key-value flyweights" border="0"><br>
86Key-value flyweights
87</a></div>
88<div class="up_link"><a href="index.html"><img src="../up.gif" alt="Boost.Flyweight reference" border="0"><br>
89Boost.Flyweight reference
90</a></div>
91<div class="next_link"><a href="factories.html"><img src="../next.gif" alt="factories" border="0"><br>
92Factories
93</a></div><br clear="all" style="clear: all;">
94
95<br>
96
97<p>Revised August 11th 2008</p>
98
99<p>&copy; Copyright 2006-2008 Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz.
100Distributed under the Boost Software
101License, Version 1.0. (See accompanying file <a href="../../../../LICENSE_1_0.txt">
102LICENSE_1_0.txt</a> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">
103http://www.boost.org/LICENSE_1_0.txt</a>)
104</p>
105
106</body>
107</html>