Atomics & memory model (C++20)
atomic_ref, floating-point atomics, atomic<shared_ptr>, fixed initialization, revised memory model and release sequences.
Connected features
Papers
11 · Albuquerque 2017 → Belfast 2019Adds floating-point atomics (fetch_add etc. for atomic<float>).
Makes std::memory_order a scoped enumeration.
Adds atomic<shared_ptr> and atomic<weak_ptr>.
Adds std::atomic_ref.
Specifies that atomic compare-exchange ignores padding bits.
Revises the memory model: fixes release sequences and strengthens sequentially-consistent semantics.
Weakens release sequences to exclude non-RMW stores from the same thread.
Editorial guidance for merging atomic_ref and the padding-bits paper.
Specifies how memory_order_consume interacts with release sequences.
Makes atomic value-initialize by default (fixing ATOMIC_VAR_INIT era initialization).
Harmonizes the definitions of total order for pointers.