1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 16:28:19 +01:00
Clementine-audio-player-Mac.../ext/libclementine-common/core/arraysize.h

6 lines
163 B
C
Raw Normal View History

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;
}