You have to write your own, but it’s simple:
template<typename>
struct is_std_array : std::false_type {};
template<typename T, std::size_t N>
struct is_std_array<std::array<T,N>> : std::true_type {};
More Related Contents:
- What do compilers do with compile-time branching?
- Is it possible to determine if a type is a scoped enumeration type?
- Disambiguate overloaded member function pointer being passed as template parameter
- How can I expand call to variadic template base classes?
- How to emulate C array initialization “int arr[] = { e1, e2, e3, … }” behaviour with std::array?
- C++11 make_pair with specified template parameters doesn’t compile
- How to initialize std::array elegantly if T is not default constructible?
- Why should I avoid std::enable_if in function signatures
- Template tuple – calling a function on each element
- Checking a member exists, possibly in a base class, C++11 version
- Calling a function for each variadic template argument and an array
- declare template friend function of template class
- Parameter pack must be at the end of the parameter list… When and why?
- Can lambda functions be templated?
- What is decltype with two arguments?
- C++ parameter pack, constrained to have instances of a single type?
- Which cannot be implemented without compiler hooks?
- Variadic templates
- What is the easiest way to print a variadic parameter pack using std::ostream?
- Check traits for all variadic template arguments
- Variadic function template with pack expansion not in last parameter
- False positive with is_copy_constructible on vector
- Dependent name resolution & namespace std / Standard Library
- What is the purpose of C++20 std::common_reference?
- Obtain container type from (its) iterator type in C++ (STL)
- Specialized template function with deleted “general” case fails to compile with g++
- How does std::forward receive the correct argument?
- Why can’t I use alias from a base class in a derived class with templates?
- Why is partial specialization of a nested class template allowed, while complete isn’t?
- How to tell if a type is an instance of a specific template class?