[/ Copyright 2007 John Maddock. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt). ] [section:extent extent] template struct extent : public __integral_constant {}; __inherit Class template extent inherits from `__integral_constant`, where `EXTENT(T,N)` is the number of elements in the N'th array dimension of type `T`. If `T` is not a (built-in) array type, or if `N > __rank::value`, or if the N'th array bound is incomplete, then `EXTENT(T,N)` is zero. __header ` #include ` or ` #include ` __examples [:`extent` inherits from `__integral_constant`.] [:`extent::type` is the type `__integral_constant`.] [:`extent::type` is the type `__integral_constant`.] [:`extent::type` is the type `__integral_constant`.] [:`extent::value` is an integral constant expression that evaluates to /4/.] [:`extent::value` is an integral constant expression that evaluates to /0/.] [:`extent::value` is an integral constant expression that evaluates to /2/.] [:`extent::value` is an integral constant expression that evaluates to /0/.] [:`extent >::value` is an integral constant expression that evaluates to /0/: `boost::array` is a class type and [*not an array type]!] [:`extent::value_type` is the type `std::size_t`.] [all_compilers] [endsect]