My Project
List of all members
bsl::is_array< T > Class Template Referencefinal

If the provided type is an array type (taking into account const qualifications), provides the member constant value equal to true. Otherwise the member constant value is false. More...

#include <is_array.hpp>

Inherits bsl::integral_constant< T, v >.

Additional Inherited Members

- Public Types inherited from bsl::integral_constant< T, v >
using type = integral_constant< T, v >
 provides the member typedef "type"
 
using value_type = T
 provides the member typedef "value_type"
 
- Static Public Attributes inherited from bsl::integral_constant< T, v >
static constexpr value_type value {v}
 the type T that stores the integral constant
 

Detailed Description

template<typename T>
class bsl::is_array< T >

If the provided type is an array type (taking into account const qualifications), provides the member constant value equal to true. Otherwise the member constant value is false.

#include <bsl/is_array.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_is_array_overview() noexcept
{
if (bsl::is_array<bool[]>::value) { // NOLINT
bsl::print() << "success\n";
}
constexpr bsl::uintmax bounds{42U};
if (bsl::is_array<bool[bounds]>::value) { // NOLINT
bsl::print() << "success\n";
}
}
}
Template Parameters
Tthe type to query

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