Mjolnir Core
Core functionality of the Mjolnir API

◆ bit_construct_set_first_n_bits()

constexpr auto bit_construct_set_first_n_bits ( ) -> T_Type
constexprnoexcept

Construct an unsigned integer with its first t_num_bits set to 1.

Template Parameters
T_TypeAn unsigned integer type
t_num_bitsNumber of bits that should be set
Returns
The constructed integer value
Note
Source: https://stackoverflow.com/a/45352771/6700329