]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/doc/type_identity.qbk
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / type_traits / doc / type_identity.qbk
1 [/
2 Copyright 2015 Peter Dimov.
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:type_identity type_identity]
9
10 template <class T>
11 struct type_identity
12 {
13 typedef T type;
14 };
15
16 __header ` #include <boost/type_traits/type_identity.hpp>` or ` #include <boost/type_traits.hpp>`
17
18 [table Examples
19
20 [ [Expression] [Result Type]]
21
22 [[`type_identity<int>::type`][`int`]]
23
24 [[`type_identity<int&>::type`] [`int&`]]
25
26 [[`type_identity<int* const&>::type`] [`int* const&`]]
27
28 ]
29
30 [endsect]
31