是否可以检查该类型T是std::array任意类型和大小的?
我可以检查一个特定的数组,例如:
is_same<T, std::array<int,5>>::value
但我想检查一下这T是std::array. 如下所示(当然,它不会编译):
is_same<T, std::array>::value
有没有办法实现这一点(也许不使用is_same)?
是否可以检查该类型T是std::array任意类型和大小的?
我可以检查一个特定的数组,例如:
is_same<T, std::array<int,5>>::value
但我想检查一下这T是std::array. 如下所示(当然,它不会编译):
is_same<T, std::array>::value
有没有办法实现这一点(也许不使用is_same)?