std::atomic_init(&obj, true);
assert(obj == true);
bool b0 = obj.is_lock_free();
+ (void)b0; // to placate scan-build
obj.store(false);
assert(obj == false);
obj.store(true, std::memory_order_release);
std::atomic_init(&obj, true);
assert(obj == true);
bool b0 = obj.is_lock_free();
+ (void)b0; // to placate scan-build
obj.store(false);
assert(obj == false);
obj.store(true, std::memory_order_release);
std::atomic_init(&obj, true);
assert(obj == true);
bool b0 = obj.is_lock_free();
+ (void)b0; // to placate scan-build
obj.store(false);
assert(obj == false);
obj.store(true, std::memory_order_release);
assert(next(m.begin(), 5)->second == 2);
i = m.erase(3);
+ assert(i == 3);
assert(m.size() == 3);
assert(next(m.begin(), 0)->first == 1);
assert(next(m.begin(), 0)->second == 1);
assert(next(m.begin(), 5)->second == 2);
i = m.erase(3);
+ assert(i == 3);
assert(m.size() == 3);
assert(next(m.begin(), 0)->first == 1);
assert(next(m.begin(), 0)->second == 1);