CppCommon 1.0.6.0
C++ Common Library
Loading...
Searching...
No Matches
countof.h File Reference

Static array countof definition. More...

Go to the source code of this file.

Namespaces

namespace  CppCommon
 C++ Common project definitions.

Functions

template<typename T, size_t N>
constexpr size_t CppCommon::countof (const T(&)[N]) noexcept
 Count of elements in static array.
template<typename T>
size_t CppCommon::countof (const T &container) noexcept
 Count of elements in any other STL container.

Detailed Description

Static array countof definition.

Author
Ivan Shynkarenka
Date
31.08.2016

Definition in file countof.h.