]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/doc/add_pointer.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / type_traits / doc / add_pointer.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_pointer add_pointer]
9
10 template <class T>
11 struct add_pointer
12 {
13 typedef __below type;
14 };
15
16 __type The same type as `remove_reference<T>::type*`.
17
18 The rationale for this template
19 is that it produces the same type as `decltype(&t)`,
20 where `t` is an object of type `T`.
21
22 __std_ref 8.3.1.
23
24 __header ` #include <boost/type_traits/add_pointer.hpp>` or ` #include <boost/type_traits.hpp>`
25
26 [table Examples
27
28 [ [Expression] [Result Type]]
29
30 [[`add_pointer<int>::type`][`int*`]]
31
32 [[`add_pointer<int const&>::type`] [`int const*`]]
33
34 [[`add_pointer<int*>::type`] [`int**`]]
35
36 [[`add_pointer<int*&>::type`] [`int**`]]
37
38 ]
39
40 [all_compilers]
41
42 [endsect]
43