Release 1.39.0
[boost.git] / Boost_1_39_0 / libs / type_traits / doc / html / boost_typetraits / reference / add_volatile.html
blob20062c03345d1dbd9d2676c0a285a3a9a6d04346
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4 <title>add_volatile</title>
5 <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
7 <link rel="home" href="../../index.html" title="Chapter 1. Boost.TypeTraits">
8 <link rel="up" href="../reference.html" title="Alphabetical Reference">
9 <link rel="prev" href="add_reference.html" title="add_reference">
10 <link rel="next" href="aligned_storage.html" title="aligned_storage">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="add_reference.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="aligned_storage.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section" lang="en">
26 <div class="titlepage"><div><div><h3 class="title">
27 <a name="boost_typetraits.reference.add_volatile"></a><a class="link" href="add_volatile.html" title="add_volatile"> add_volatile</a>
28 </h3></div></div></div>
29 <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">&gt;</span>
30 <span class="keyword">struct</span> <span class="identifier">add_volatile</span>
31 <span class="special">{</span>
32 <span class="keyword">typedef</span> <em class="replaceable"><code>see-below</code></em> <span class="identifier">type</span><span class="special">;</span>
33 <span class="special">};</span>
34 </pre>
35 <p>
36 <span class="bold"><strong>type:</strong></span> The same type as <code class="computeroutput"><span class="identifier">T</span>
37 <span class="keyword">volatile</span></code> for all <code class="computeroutput"><span class="identifier">T</span></code>.
38 </p>
39 <p>
40 <span class="bold"><strong>C++ Standard Reference:</strong></span> 3.9.3.
41 </p>
42 <p>
43 <span class="bold"><strong>Compiler Compatibility:</strong></span> If the compiler
44 does not support partial specialization of class-templates then this template
45 will compile, but the member <code class="computeroutput"><span class="identifier">type</span></code>
46 will always be the same as type <code class="computeroutput"><span class="identifier">T</span></code>
47 except where <a class="link" href="../category/transform.html#boost_typetraits.category.transform.broken_compiler_workarounds_">compiler
48 workarounds</a> have been applied.
49 </p>
50 <p>
51 <span class="bold"><strong>Header:</strong></span> <code class="computeroutput"> <span class="preprocessor">#include</span>
52 <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">type_traits</span><span class="special">/</span><span class="identifier">add_volatile</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
53 or <code class="computeroutput"> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">type_traits</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
54 </p>
55 <div class="table">
56 <a name="id802156"></a><p class="title"><b>Table 1.9. Examples</b></p>
57 <div class="table-contents"><table class="table" summary="Examples">
58 <colgroup>
59 <col>
60 <col>
61 </colgroup>
62 <thead><tr>
63 <th>
64 <p>
65 Expression
66 </p>
67 </th>
68 <th>
69 <p>
70 Result Type
71 </p>
72 </th>
73 </tr></thead>
74 <tbody>
75 <tr>
76 <td>
77 <p>
78 <code class="computeroutput"><span class="identifier">add_volatile</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
79 </p>
80 </td>
81 <td>
82 <p>
83 <code class="computeroutput"><span class="keyword">int</span> <span class="keyword">volatile</span></code>
84 </p>
85 </td>
86 </tr>
87 <tr>
88 <td>
89 <p>
90 <code class="computeroutput"><span class="identifier">add_volatile</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&amp;&gt;::</span><span class="identifier">type</span></code>
91 </p>
92 </td>
93 <td>
94 <p>
95 <code class="computeroutput"><span class="keyword">int</span><span class="special">&amp;</span></code>
96 </p>
97 </td>
98 </tr>
99 <tr>
100 <td>
102 <code class="computeroutput"><span class="identifier">add_volatile</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">*&gt;::</span><span class="identifier">type</span></code>
103 </p>
104 </td>
105 <td>
107 <code class="computeroutput"><span class="keyword">int</span><span class="special">*</span>
108 <span class="keyword">volatile</span></code>
109 </p>
110 </td>
111 </tr>
112 <tr>
113 <td>
115 <code class="computeroutput"><span class="identifier">add_volatile</span><span class="special">&lt;</span><span class="keyword">int</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span></code>
116 </p>
117 </td>
118 <td>
120 <code class="computeroutput"><span class="keyword">int</span> <span class="keyword">const</span>
121 <span class="keyword">volatile</span></code>
122 </p>
123 </td>
124 </tr>
125 </tbody>
126 </table></div>
127 </div>
128 <br class="table-break">
129 </div>
130 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
131 <td align="left"></td>
132 <td align="right"><div class="copyright-footer">Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
133 Steve Cleary, Beman Dawes, Aleksey Gurtovoy, Howard Hinnant, Jesse Jones, Mat
134 Marcus, Itay Maman, John Maddock, Alexander Nasonov, Thorsten Ottosen, Robert
135 Ramey and Jeremy Siek<p>
136 Distributed under the Boost Software License, Version 1.0. (See accompanying
137 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
138 </p>
139 </div></td>
140 </tr></table>
141 <hr>
142 <div class="spirit-nav">
143 <a accesskey="p" href="add_reference.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="aligned_storage.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
144 </div>
145 </body>
146 </html>