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
8
namespace
utl
{
9
17
template
<
class
T,
size_t
N>
18
constexpr
size_t
countof
(T (&)[N]) {
19
return
N;
20
}
21
22
}
// namespace utl
23
24
#endif
utl
Definition
base.h:8
utl::countof
constexpr size_t countof(T(&)[N])
Helper to get number of elements in array.
Definition
base.h:18
dev
boot
BootKit
Shared
base.h
Generated by
1.14.0