is_unbounded_array.qbk 876 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_unbounded_array is_unbounded_array]
  9. template<class T>
  10. struct is_unbounded_array
  11. : __tof { };
  12. __inherit If T is a (possibly cv-qualified) array type of unknown bound, then
  13. inherits from __true_type, otherwise inherits from __false_type.
  14. __header `#include <boost/type_traits/is_unbounded_array.hpp>`
  15. [all_compilers]
  16. __examples
  17. [:`is_unbounded_array<int[]>` inherits from `__true_type`.]
  18. [:`is_unbounded_array<char[][3]>::type` is the type `__true_type`.]
  19. [:`is_unbounded_array<double[]>::value` is an integral constant expression that
  20. evaluates to /true/.]
  21. [:`is_unbounded_array<T>::value_type` is the type `bool`.]
  22. [endsect]