atomic_fetch_xor missing from stdatomic.h
Hubert Tong

Created on 2022-02-09.00:00:00 last changed 2 months ago


Date: 2022-03-04.14:33:21

Proposed resolution:

This wording is relative to N4901.

  1. Modify [stdatomic.h.syn], header <stdatomic.h> synopsis, as indicated:

    [Drafting Note: The editor is kindly requested to reorder these "atomic_fetch_KEY" declarations to match the other synopses in Clause [atomics]: add, sub, and, or, xor.]

    using std::atomic_fetch_or;                    // see below
    using std::atomic_fetch_or_explicit;           // see below
    using std::atomic_fetch_xor;                   // see below
    using std::atomic_fetch_xor_explicit;          // see below
    using std::atomic_fetch_and;                   // see below
    using std::atomic_fetch_and_explicit;          // see below
Date: 2022-03-15.00:00:00

[ 2022-03-04; Reflector poll ]

Set status to Tentatively Ready after eight votes in favour during reflector poll.

Date: 2022-02-15.00:00:00

[ 2022-02-09; Jonathan comments and provides wording ]

C++20 [atomics.syn] has both of them, too, so it should definitely be in the common subset.

Date: 2022-02-09.00:00:00

C17 subclause provides atomic_fetch_xor and atomic_fetch_xor_explicit. stdatomic.h in the working draft (N4901) does not.

Date User Action Args
2022-03-04 14:33:21adminsetmessages: + msg12390
2022-03-04 14:33:21adminsetstatus: new -> ready
2022-02-10 16:06:13adminsetmessages: + msg12368
2022-02-10 16:06:13adminsetmessages: + msg12367
2022-02-09 00:00:00admincreate