codex
Loading...
Searching...
No Matches
BitPattern Class Reference

#include <bit_pattern.hpp>

Public Member Functions

template<std::size_t N>
consteval BitPattern (const char(&pattern)[N])
 
constexpr bool matches (std::unsigned_integral auto v)
 
template<std::size_t N>
consteval BitPattern (const char(&pattern)[N])
 
constexpr bool matches (std::unsigned_integral auto v)
 

Private Attributes

std::uint64_t mask = {}
 
std::uint64_t expected = {}
 

Constructor & Destructor Documentation

◆ BitPattern() [1/2]

template<std::size_t N>
BitPattern::BitPattern ( const char(&) pattern[N])
inlineexplicitconsteval

◆ BitPattern() [2/2]

template<std::size_t N>
BitPattern::BitPattern ( const char(&) pattern[N])
inlineexplicitconsteval

Member Function Documentation

◆ matches() [1/2]

bool BitPattern::matches ( std::unsigned_integral auto v)
inlineconstexpr
Here is the caller graph for this function:

◆ matches() [2/2]

bool BitPattern::matches ( std::unsigned_integral auto v)
inlineconstexpr

Member Data Documentation

◆ expected

std::uint64_t BitPattern::expected = {}
private

◆ mask

std::uint64_t BitPattern::mask = {}
private

The documentation for this class was generated from the following files: