muu/bit_fill.h file

Contains the definitions of muu::bit_fill_left() and muu::bit_fill_right().

Namespaces

namespace muu
The root namespace for all muu functions and types.

Functions

template <typename T>
auto bit_fill_left(size_t count) -> T constexpr noexcept
Returns an unsigned integer filled from the left with the desired number of consecutive ones.
template <typename T>
auto bit_fill_right(size_t count) -> T constexpr noexcept
Returns an unsigned integer filled from the right with the desired number of consecutive ones.