Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
修飾子を使用してアトミックオブジェクトを作成する意味はありますか - volatile?
それを使用します:
volatile std::atomic<int> i(1);
それ以外の:
std::atomic<int> i(1);