]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/doc/remove_all_extents.qbk
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / type_traits / doc / remove_all_extents.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:remove_all_extents remove_all_extents]
9
10 template <class T>
11 struct remove_all_extents
12 {
13 typedef __below type;
14 };
15
16 __type If `T` is an array type, then removes all of the array bounds on `T`, otherwise
17 leaves `T` unchanged.
18
19 __std_ref 8.3.4.
20
21 [all_compilers]
22
23 __header ` #include <boost/type_traits/remove_all_extents.hpp>` or ` #include <boost/type_traits.hpp>`
24
25 [table Examples
26
27 [ [Expression] [Result Type]]
28
29 [[`remove_all_extents<int>::type`][`int`]]
30
31 [[`remove_all_extents<int const[2]>::type`] [`int const`]]
32
33 [[`remove_all_extents<int[][2]>::type`] [`int`]]
34
35 [[`remove_all_extents<int[2][3][4]>::type`] [`int`]]
36
37 [[`remove_all_extents<int const*>::type`] [`int const*`]]
38
39 ]
40
41 [endsect]
42