mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
@@ -6,6 +6,8 @@ struct A {
|
||||
int y;
|
||||
long long z;
|
||||
};
|
||||
|
||||
int main() {
|
||||
std::atomic<A> a;
|
||||
std::cout << std::boolalpha << a.is_lock_free() << std::endl;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user