...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
template<class T>
struct is_bounded_array
: true_type-or-false_type
{ };
Inherits: If T is a (possibly cv-qualified) array type of known bound, then inherits from true_type, otherwise inherits from false_type.
Header: #include
<boost/type_traits/is_bounded_array.hpp>
Compiler Compatibility: All current compilers are supported by this trait.
Examples:
is_bounded_array<int[2]>
inherits fromtrue_type
.
is_bounded_array<char[2][3]>::type
is the typetrue_type
.
is_bounded_array<double[2]>::value
is an integral constant expression that evaluates to true.
is_bounded_array<T>::value_type
is the typebool
.