Project
Loading...
Searching...
No Matches
o2::data_compression::getnofelements< T, _min, _max > Struct Template Reference

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
 

Detailed Description

template<typename T, T _min, T _max>
struct o2::data_compression::getnofelements< T, _min, _max >

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.

Member Data Documentation

◆ value

template<typename T , T _min, T _max>
std::size_t const o2::data_compression::getnofelements< T, _min, _max >::value = boost::mpl::size<boost::mpl::range_c<T, _min, _max>>::value + 1
static

Definition at line 73 of file dc_primitives.h.


The documentation for this struct was generated from the following file: