std::is_unbounded_array
Min standard notice:
Header: <type_traits>
std::is_unbounded_array is a UnaryTypeTrait.
# Declarations
template< class T >
struct is_unbounded_array;
(since C++20)
# Notes
Feature-test macro Value Std Feature __cpp_lib_bounded_array_traits 201902L (C++20) std::is_bounded_array, std::is_unbounded_array
# Example
#include <type_traits>
class A {};
static_assert
(""
&& std::is_unbounded_array_v<A> == false
&& std::is_unbounded_array_v<A[]> == true
&& std::is_unbounded_array_v<A[3]> == false
&& std::is_unbounded_array_v<float> == false
&& std::is_unbounded_array_v<int> == false
&& std::is_unbounded_array_v<int[]> == true
&& std::is_unbounded_array_v<int[3]> == false
);
int main() {}