tudocomp
– The TU Dortmund Compression Framework
tdc::msbf< int_t > Struct Template Reference

Yields the position of the most significant bit for the template integer type. More...

#include <util.hpp>

Detailed Description

template<typename int_t>
struct tdc::msbf< int_t >

Yields the position of the most significant bit for the template integer type.

In some scenarios (e.g. rank and select), where bit order and boundaries of a certain type are relevant, it is assumed that the "first" bit is the least significant one at position 0, while the "last" bit is the most significant one.

The latter can be retrieved from the static pos constant expression within this struct.

Template Parameters
int_tthe integer type in question

Definition at line 241 of file include/tudocomp/util.hpp.


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