If we can have std::atomic, why not std::atomic? Controlling the reference count. Click here to read the article