, . , , , . , y , - ( , - , operator= ), x. .
, , , . ; char , 16- , (IMHO) : .
struct MyBools {
bool x;
bool y;
};
bool operator==(const MyBools& lhs, const MyBools& rhs) {
return lhs.x == rhs.x && lhs.y == rhs.y;
}
using MyAtomicBools = std::atomic<MyBools>;
MyAtomicBools b{true, true};
...
if (b == MyBools{false, false}) { ... }
, 16- . gcc, , ; + , clang : https://godbolt.org/g/moiT9Y.