1
2
3
4
5
template <typename Type, size_t N>
inline size_t GetArrayLength(const Type(&)[N])
{
return N;
}