ZXFoundation™ 26h2
Loading...
Searching...
No Matches
rwonce.cxxm File Reference
module lib.rwonce

Read-Write Once implementation. More...

import std;
import zxfoundation.base.types;
Include dependency graph for rwonce.cxxm:

Data Structures

class  lib::rwonce::cell< T >
struct  lib::rwonce::detail::native_uint< usize >
struct  lib::rwonce::detail::native_uint< 1 >
struct  lib::rwonce::detail::native_uint< 2 >
struct  lib::rwonce::detail::native_uint< 4 >
struct  lib::rwonce::detail::native_uint< 8 >
class  lib::rwonce::ref< T >

Concepts

concept  lib::rwonce::detail::has_native_uint
concept  lib::rwonce::Word

Typedefs

template<typename T>
using lib::rwonce::detail::native_uint_t = native_uint<sizeof(T)>::type

Functions

template<typename T>
constexpr T lib::rwonce::read_once (const T &x) noexcept
template<typename T>
 lib::rwonce::ref (T &) -> ref< T >
template<typename T>
requires (!Word<T>)
constexpr void lib::rwonce::detail::reject_unsupported_type ()
template<typename T>
constexpr void lib::rwonce::write_once (T &x, std::type_identity_t< T > val) noexcept

Detailed Description

Read-Write Once implementation.

SPDX-License-Identifier: Apache-2.0