JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
Loading...
Searching...
No Matches
jh::pod::std_uint Concept Reference

Internal constraint for native unsigned integer types. More...

#include <jh/pods/bits.h>

Concept definition

template<typename T>
concept std_uint = std::is_same_v<T, std::uint8_t> ||
std::is_same_v<T, std::uint16_t> ||
std::is_same_v<T, std::uint32_t> ||
std::is_same_v<T, std::uint64_t>
Internal constraint for native unsigned integer types.
Definition bits.h:76

Detailed Description

Internal constraint for native unsigned integer types.

This concept matches exactly the unsigned integer types that can directly back a bitflags<N> specialization: uint8_t, uint16_t, uint32_t, and uint64_t.

It exists solely to enable optimized implementations where the entire bitset can be represented and manipulated as a single native integer, allowing constant-time bitwise operations and efficient popcount.

Internal use only. This concept is not part of the public API and must not be relied upon by user code.