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).
8 [section:is_object is_object]
10 struct is_object : public __tof {};
12 __inherit If T is a (possibly cv-qualified) object type
13 then inherits from __true_type,
14 otherwise inherits from __false_type. All types are object types except
15 references, void, and function types.
21 __header ` #include <boost/type_traits/is_object.hpp>` or ` #include <boost/type_traits.hpp>`
25 [:`is_object<int>` inherits from `__true_type`.]
27 [:`is_object<int*>::type` is the type `__true_type`.]
29 [:`is_object<int (*)(void)>::value` is an integral constant
30 expression that evaluates to /true/.]
32 [:`is_object<int (MyClass::*)(void)const>::value` is an integral constant
33 expression that evaluates to /true/.]
35 [:`is_object<int &>::value` is an integral constant
36 expression that evaluates to /false/: reference types are not objects]
38 [:`is_object<int (double)>::value` is an integral constant
39 expression that evaluates to /false/: function types are not objects]
41 [:`is_object<const void>::value` is an integral constant
42 expression that evaluates to /false/: void is not an object type]
44 [:`is_object<T>::value_type` is the type `bool`.]