]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/doc/is_array.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / type_traits / doc / is_array.qbk
CommitLineData
7c673cae
FG
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:is_array is_array]
9 template <class T>
10 struct is_array : public __tof {};
11
12__inherit If T is a (possibly cv-qualified) array type then inherits from __true_type,
13otherwise inherits from __false_type.
14
15__std_ref 3.9.2 and 8.3.4.
16
17__header ` #include <boost/type_traits/is_array.hpp>` or ` #include <boost/type_traits.hpp>`
18
19[all_compilers]
20
21__examples
22
23[:`is_array<int[2]>` inherits from `__true_type`.]
24
25[:`is_array<char[2][3]>::type` is the type `__true_type`.]
26
27[:`is_array<double[]>::value` is an integral constant
28expression that evaluates to /true/.]
29
30[:`is_array<T>::value_type` is the type `bool`.]
31
32[endsect]
33