]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/doc/add_volatile.qbk
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / type_traits / doc / add_volatile.qbk
1 [/
2 Copyright 2007 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
6 ]
7
8 [section:add_volatile add_volatile]
9
10 template <class T>
11 struct add_volatile
12 {
13 typedef __below type;
14 };
15
16 __type The same type as `T volatile` for all `T`.
17
18 __std_ref 3.9.3.
19
20 __header ` #include <boost/type_traits/add_volatile.hpp>` or ` #include <boost/type_traits.hpp>`
21
22 [table Examples
23
24 [ [Expression] [Result Type]]
25
26 [[`add_volatile<int>::type`][`int volatile`]]
27
28 [[`add_volatile<int&>::type`] [`int&`]]
29
30 [[`add_volatile<int*>::type`] [`int* volatile`]]
31
32 [[`add_volatile<int const>::type`] [`int const volatile`]]
33
34 ]
35
36 [all_compilers]
37
38 [endsect]
39