initial commit
This commit is contained in:
commit
6fec798425
1 changed files with 159 additions and 0 deletions
6
helpers.hpp
Normal file
6
helpers.hpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
/// returns the amount of elements in an array
|
||||
template<class T> constexpr int length(T arr[]) {
|
||||
return sizeof(arr) / sizeof(T);
|
||||
}
|
||||
Loading…
Reference in a new issue