![]() |
Project
|
Get number of elements in a sequence of integral types This redirects to the size meta program of the boost mpl, but includes the upper bound as a valid element in the accounting. More...
#include <dc_primitives.h>
Static Public Attributes | |
static std::size_t const | value = boost::mpl::size<boost::mpl::range_c<T, _min, _max>>::value + 1 |
Get number of elements in a sequence of integral types This redirects to the size meta program of the boost mpl, but includes the upper bound as a valid element in the accounting.
Example usage: getnofelements<int, -10, 10>value
Definition at line 72 of file dc_primitives.h.
|
static |
Definition at line 73 of file dc_primitives.h.