Sujet : 7.17.7.5 The atomic_fetch and modify generic functions and "address types"
De : andreytarasevich (at) *nospam* hotmail.com (Andrey Tarasevich)
Groupes : comp.std.cDate : 27. Dec 2024, 23:06:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vkn8da$3rj4n$1@dont-email.me>
User-Agent : Mozilla Thunderbird
7.17.7.5 says (
https://port70.net/~nsz/c/c11/n1570.html#7.17.7.5)
1 The following operations perform arithmetic and bitwise computations. All of these operations are applicable to an object of any atomic integer type. None of these operations is applicable to atomic_bool.
If I understand it correctly, this wording is intended to restrict these operations to integers types only. I.e. they shall not be applied to atomic pointer types. Is that correct?
Later 7.17.7.5 also says
3 For address types, the result may be an undefined address, but the operations otherwise have no undefined behavior.
However, I was unable to find any mention of "address types" anywhere in the standard. What types are "address types"?
-- Best regards,Andrey