chsvlib
chsv helper source code
get_bit_mask_by_indices_value< T, IndicesOfBits > Struct Template Reference

Defines a static data member holding an integral value which specifies a mask of bits set with respect to indices specified as the template parameters. More...

Detailed Description

template<class T, unsigned... IndicesOfBits>
struct Chusov::Math::get_bit_mask_by_indices_value< T, IndicesOfBits >

Defines a static data member holding an integral value which specifies a mask of bits set with respect to indices specified as the template parameters.

Template Parameters
Tis an integral type of value static constant data member holding a value with bits set according to indices in the template parameter pack.
IndicesOfBitsis a pack of indices of bits to be set in the resulting bit mask with other bits being reset. Example:
get_bit_mask_by_indices_value<unsigned, 0, 2>::value; // resolves to 5

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