AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ ArraySize()

template<typename T , unsigned S>
unsigned drama::ArraySize ( const T(&)  v[S])
inline

Return the number of elements in an array.

See discussions at:

http://www.cplusplus.com/forum/general/33669/

for details on why this is better then the traditional solution (such as implemented by DitsNumber()).

It takes advantage of the ability of the size of an array to be passed to a template.

Template Parameters
TType of array
SType of index into array
Parameters
vThe array to return the size of.
Returns
The size of the array - number of elements.

References CreateRunDramaTask().