Mjolnir Core
Core functionality of the Mjolnir API

◆ bit_construct_from_ints()

consteval auto bit_construct_from_ints ( bool  left_is_low = false) -> T_Type
noexcept

Construct an unsigned integer from the bit patterns of multiple integer values.

The function takes multiple integer value of the specified size in bits. Their bit patterns are concatenated to construct the bit pattern of the result value. Depending on the value of left_is_low, the lowest bit pattern is either represented by the first or the last provided value.

Template Parameters
t_num_int_bitsSpecifies how many bits are possessed by each of the individual integers
T_TypeAn unsigned integer type
t_integersThe individual integer values (see detailed description). Values exceeding the bit size will trigger an assertion.
Parameters
[in]left_is_lowIf true, the first value represents the lowest bit pattern. Otherwise, the last value represents the lowest bit pattern.
Returns
The constructed integer value