My Project
bsl::extent< T, N > Class Template Referencefinal

If T is an array type, provides the member constant value equal to the number of elements along the Nth dimension of the array, if N is in [0, std::rank<T>::value). For any other type, or if T is an array of unknown bound along its first dimension and N is 0, value is 0. More...

#include <extent.hpp>

Inherits extent_base< T, N >.

Detailed Description

template<typename T, bsl::uintmax N = 0>
class bsl::extent< T, N >

If T is an array type, provides the member constant value equal to the number of elements along the Nth dimension of the array, if N is in [0, std::rank<T>::value). For any other type, or if T is an array of unknown bound along its first dimension and N is 0, value is 0.

#include <bsl/extent.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_extent_overview() noexcept
{
constexpr bsl::int32 ext{2};
if (bsl::extent<bool[ext]>::value == ext) { // NOLINT
bsl::print() << "success\n";
}
}
}
Template Parameters
Tthe type to get the extent from
Nthe dimension of T to the the extent from

The documentation for this class was generated from the following file: