is_compound.qbk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. [section:is_compound is_compound]
  8. template <class T>
  9. struct is_compound : public __tof {};
  10. __inherit If T is a (possibly cv-qualified) compound type then inherits from __true_type,
  11. otherwise inherits from __false_type. Any type that is not a fundamental type is
  12. a compound type (see also __is_fundamental).
  13. __std_ref 3.9.2.
  14. [all_compilers]
  15. __header ` #include <boost/type_traits/is_compound.hpp>` or ` #include <boost/type_traits.hpp>`
  16. __examples
  17. [:`is_compound<MyClass>` inherits from `__true_type`.]
  18. [:`is_compound<MyEnum>::type` is the type `__true_type`.]
  19. [:`is_compound<int*>::value` is an integral constant
  20. expression that evaluates to /true/.]
  21. [:`is_compound<int&>::value` is an integral constant
  22. expression that evaluates to /true/.]
  23. [:`is_compound<int>::value` is an integral constant
  24. expression that evaluates to /false/.]
  25. [:`is_compound<T>::value_type` is the type `bool`.]
  26. [endsect]