MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / ArraySize

Function ArraySize

SampleFramework12/v1.00/Utility.h:123–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122template<typename T, uint64 N>
123uint64 ArraySize(T(&)[N])
124{
125 return N;
126}
127
128#define ArraySize_(x) ((sizeof(x) / sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
129

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected