std::atomic<std::weak_ptr>

Header: <memory>

The partial template specialization of std::atomic for std::weak_ptr allows users to manipulate weak_ptr objects atomically.

# Declarations

template< class T > struct std::atomic<std::weak_ptr<T>>;

(since C++20)

# Example

This section is incompleteReason: no example

# See also