4 ms·
nice exposition to c array types. in c++, a compile-time equivalent to sizeof would be: template<typename T, size_t N> size_t sz(T(&)[N]) { return N; }
by utopcell 10y ago
nice exposition to c array types.
in c++, a compile-time equivalent to sizeof would be:
template<typename T, size_t N> size_t sz(T(&)[N]) { return N; }