chsvlib
chsv helper source code
inverse_bits_value< Value, IndicesOfBits > Struct Template Reference

Defines a value field resolving to an integral value of unsigned type which holds an integral parameter Value with inverted bits, as specified by integral bit indices in a template parameter list. More...

#include <chsvmath.h>

Inheritance diagram for inverse_bits_value< Value, IndicesOfBits >:
Collaboration diagram for inverse_bits_value< Value, IndicesOfBits >:

Detailed Description

template<unsigned Value, unsigned... IndicesOfBits>
struct Chusov::Math::inverse_bits_value< Value, IndicesOfBits >

Defines a value field resolving to an integral value of unsigned type which holds an integral parameter Value with inverted bits, as specified by integral bit indices in a template parameter list.

Template Parameters
Valueis an integral value with
IndicesOfBitsis a pack of indices of bits to be inverted. Example:
get_bit_mask_by_indices_value<0, 2>::value; // resolves to 5

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