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::runtime_arr< bool >::bit_ref Struct Referencefinal

Internal reference proxy for single bit access. More...

#include <jh/core/runtime_arr.h>

Public Member Functions

 bit_ref (std::uint64_t &word, const std::uint64_t bit)
bit_ref & operator= (bool val) &noexcept
bit_ref & operator= (bool val) const &&noexcept
 operator bool () const

Detailed Description

Internal reference proxy for single bit access.

Overview

Represents a writable proxy for an individual bit within a 64-bit word.

Behavior
  • Writable via assignment from bool.
  • Convertible to bool for read access.

The documentation for this struct was generated from the following file: