#ifndef UTL_BASE_H #define UTL_BASE_H #include #include #include namespace utl { /** * @brief Helper to get number of elements in array. * * @tparam T Auto-deduced element type * @tparam N Auto-deduced number of elements * @return Array size */ template constexpr size_t countof(T (&)[N]) { return N; } } // namespace utl #endif