std::experi...mic_weak_ptr(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 πŸ’…

  1. The default constructor initializes the object to an empty state.
  2. Initializes the underlying weak_ptr<T> with desired. The initialization is not atomic β€” important, bestie, don't forget that part.
  3. 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