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