NeKernel dev
Loading...
Searching...
No Matches
base.h
Go to the documentation of this file.
1#ifndef UTL_BASE_H
2#define UTL_BASE_H
3
4#include <math.h>
5#include <stddef.h>
6#include <stdint.h>
7
8namespace utl {
9
17template <class T, size_t N>
18constexpr size_t countof(T (&)[N]) {
19 return N;
20}
21
22} // namespace utl
23
24#endif
Definition base.h:8
constexpr size_t countof(T(&)[N])
Helper to get number of elements in array.
Definition base.h:18