mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[util] Add countof helper
This commit is contained in:
parent
d4cad9055c
commit
aef12f7ee3
8
src/util/util_misc.h
Normal file
8
src/util/util_misc.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace dxvk {
|
||||||
|
|
||||||
|
template <typename T, size_t n>
|
||||||
|
size_t countof(const T(&)[n]) { return n; }
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user