Hacker News new | ask | show | jobs
by jbandela1 877 days ago
Also, std::atomic is one of those special types.

It is deeply integrated into the C++11 memory model. The compiler has to know about the semantics of the type to make sure it doesn’t reorder operations around it.