is_bounded_array.qbk 861 B

12345678910111213141516171819202122232425262728293031323334
  1. [/
  2. Copyright 2018 Glen Joseph Fernandes
  3. (glenjofe@gmail.com)
  4. Distributed under the Boost Software License,
  5. Version 1.0. (See accompanying file LICENSE_1_0.txt
  6. or copy at http://www.boost.org/LICENSE_1_0.txt).
  7. ]
  8. [section:is_bounded_array is_bounded_array]
  9. template<class T>
  10. struct is_bounded_array
  11. : __tof { };
  12. __inherit If T is a (possibly cv-qualified) array type of known bound, then
  13. inherits from __true_type, otherwise inherits from __false_type.
  14. __header `#include <boost/type_traits/is_bounded_array.hpp>`
  15. [all_compilers]
  16. __examples
  17. [:`is_bounded_array<int[2]>` inherits from `__true_type`.]
  18. [:`is_bounded_array<char[2][3]>::type` is the type `__true_type`.]
  19. [:`is_bounded_array<double[2]>::value` is an integral constant expression that
  20. evaluates to /true/.]
  21. [:`is_bounded_array<T>::value_type` is the type `bool`.]
  22. [endsect]