MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / sizeof_array

Function sizeof_array

core/core.h:143–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141//#define sizeof_array(x) (sizeof(x)/sizeof(*x))
142template <typename T, size_t N>
143size_t sizeof_array(const T (&)[N])
144{
145 return N;
146}
147
148// functor designed for use in the stl
149template <typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected