bit_pattern - MichaelMiller-/sec21 GitHub Wiki

bit_pattern

#include <sec21/bit_pattern.h>

Matches the bits via a pattern. The letter x represents a placeholder.

Example

static_assert(0b1101010u == bit_pattern("11xxx10"));
⚠️ **GitHub.com Fallback** ⚠️