ZXFoundation™ 26h2
Loading...
Searching...
No Matches
lib::bitfield_ref< T, Numbering > Class Template Referenceexport

Public Types

using numbering = Numbering
using storage_type = T

Public Member Functions

constexpr bitfield_ref (T &storage) noexcept
constexpr bitfield_ref & clear (usize bit) noexcept
template<usize A, usize B>
constexpr T extract () const noexcept
constexpr T extract (usize a, usize b) const noexcept
constexpr bitfield_ref & flip (usize bit) noexcept
template<usize A, usize B>
constexpr bitfield_ref & insert (T v) noexcept
constexpr bitfield_ref & insert (usize a, usize b, T v) noexcept
constexpr operator T () const noexcept
constexpr auto operator[] (this auto &&self, usize a, usize b) noexcept -> std::conditional_t< std::is_const_v< std::remove_reference_t< decltype(self)> >, T, bit_range_ref< T > >
constexpr auto operator[] (this auto &&self, usize bit) noexcept -> std::conditional_t< std::is_const_v< std::remove_reference_t< decltype(self)> >, bool, bit_ref< T > >
constexpr T & raw () noexcept
constexpr bitfield_ref & set (usize bit) noexcept
constexpr bitfield_ref & set (usize bit, bool v) noexcept
constexpr bitfield_ref & set_range (usize a, usize b, T v) noexcept
constexpr bool test (usize bit) const noexcept
constexpr T value () const noexcept

Static Public Attributes

static constexpr usize extent = std::numeric_limits<T>::digits

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