]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/doc/is_object.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / type_traits / doc / is_object.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_object is_object]
9 template <class T>
10 struct is_object : public __tof {};
11
12__inherit If T is a (possibly cv-qualified) object type
13then inherits from __true_type,
14otherwise inherits from __false_type. All types are object types except
15references, void, and function types.
16
17__std_ref 3.9p9.
18
19[all_compilers]
20
21__header ` #include <boost/type_traits/is_object.hpp>` or ` #include <boost/type_traits.hpp>`
22
23__examples
24
25[:`is_object<int>` inherits from `__true_type`.]
26
27[:`is_object<int*>::type` is the type `__true_type`.]
28
29[:`is_object<int (*)(void)>::value` is an integral constant
30expression that evaluates to /true/.]
31
32[:`is_object<int (MyClass::*)(void)const>::value` is an integral constant
33expression that evaluates to /true/.]
34
35[:`is_object<int &>::value` is an integral constant
36expression that evaluates to /false/: reference types are not objects]
37
38[:`is_object<int (double)>::value` is an integral constant
39expression that evaluates to /false/: function types are not objects]
40
41[:`is_object<const void>::value` is an integral constant
42expression that evaluates to /false/: void is not an object type]
43
44[:`is_object<T>::value_type` is the type `bool`.]
45
46[endsect]
47