Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

is_bounded_array

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 from true_type.

is_bounded_array<char[2][3]>::type is the type true_type.

is_bounded_array<double[2]>::value is an integral constant expression that evaluates to true.

is_bounded_array<T>::value_type is the type bool.


PrevUpHomeNext