std::experi...mic_weak_ptr(3)
π std::experi...mic_weak_ptr(3) π
okay bestie, welcome to the C++ Standard Libary manual page for std::experimental::atomic_weak_ptr::atomic_weak_ptr. yes the name is a whole mouthful, we love that for her π
πΈ NAME πΈ
std::experimental::atomic_weak_ptr::atomic_weak_ptr -
std::experimental::atomic_weak_ptr::atomic_weak_ptr
that's the name, no cap β¨
β¨ Synopsis β¨
here's the constructor lineup, bestie:
constexpr atomic_weak_ptr() noexcept; (1)
constexpr atomic_weak_ptr( weak_ptr<T> desired ) noexcept; (2)
atomic_weak_ptr( const atomic_weak_ptr& ) = delete; (3)
Constructs a new atomic_weak_ptr object. periodt π
- The default constructor initializes the object to an empty state.
- Initializes the underlying
weak_ptr<T>withdesired. The initialization is not atomic β important, bestie, don't forget that part. - Atomic variables are not
CopyConstructible, which is why that copy constructor is sitting there with= delete.
π Parameters π
desiredβ value to initialize with.
that's the whole parameter list, she's lowkey simple π«Ά
made with love from http://cppreference.com, version/date 2024.06.10, page std::experi...mic_weak_ptr(3) β bye bestie, go construct something cute ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms