mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-28 10:30:38 +01:00
6 lines
163 B
C++
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;
|
|
}
|