1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00
Clementine-audio-player-Mac.../ext/libclementine-common/core/arraysize.h
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;
}