tt::is_std_array_of_size< N, T > Struct Template Reference

Check if type T is a std::array of a given size. More...

#include <IsStdArrayOfSize.hpp>

Detailed Description

template<size_t N, typename T>
struct tt::is_std_array_of_size< N, T >

Check if type T is a std::array of a given size.

Details

Given a size_t N and type T derives from std::true_type if T is a std::array of size N and from std::false_type otherwise.

Usage

For any type T

Returns: std::bool_constant

Semantics: If T is a std::array of size N then

typename result::type = std::bool_constant<true>;

otherwise

typename result::type = std::bool_constant<false>;

Example

"Failed testing type trait is_std_array_of_size");
"Failed testing type trait is_std_array_of_size");
"Failed testing type trait is_std_array_of_size");
"Failed testing type trait is_std_array_of_size");
static_assert(not tt::is_std_array_of_size<2, std::array<double, 3>>::value,
"Failed testing type trait is_std_array_of_size");
static_assert(tt::is_std_array_of_size<10, std::array<D, 10>>::value,
"Failed testing type trait is_std_array_of_size");
See also
is_std_array
Template Parameters
Tthe type to check

The documentation for this struct was generated from the following file:
std::bool_constant
tt::is_std_array_of_size_v
constexpr bool is_std_array_of_size_v
Definition: IsStdArrayOfSize.hpp:52
tt::is_std_array_of_size_t
typename is_std_array_of_size< N, T >::type is_std_array_of_size_t
Definition: IsStdArrayOfSize.hpp:56
tt::is_std_array_of_size
Check if type T is a std::array of a given size.
Definition: IsStdArrayOfSize.hpp:43
std::array< double, 3 >