codex
Loading...
Searching...
No Matches
bit_pattern

Compile-time bit pattern matcher based on C++ Weekly ep. 230.

static_assert(BitPattern("11xxx1").matches(0b110101u));
static_assert(!BitPattern("11xxx1").matches(0b110100u));
Definition bit_pattern.hpp:9
constexpr bool matches(std::unsigned_integral auto v)
Definition bit_pattern.hpp:26