1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-02-02 12:26:48 +01:00
2016-01-14 16:14:13 +00:00

6 lines
163 B
C++

template <typename T>
constexpr size_t arraysize(const T&) {
static_assert(std::is_array<T>::value, "Argument must be array");
return std::extent<T>::value;
}