std::experi...torweak_ptr(3)

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

πŸ’– NAME πŸ’–

okay so this is the C++ Standard Libary manual page for std::experimental::atomic_weak_ptr::operatorweak_ptr β€” and yes bestie, the full name is also std::experimental::atomic_weak_ptr::operatorweak_ptr. The header shortens it to std::experi...torweak_ptr(3), iykyk. πŸ’…

✨ Synopsis ✨

operator weak_ptr<T>() const noexcept;

This operator atomically loads and returns the current value of the atomic_weak_ptr. Equivalent to load(). ✨

πŸŽ€ Parameters πŸŽ€

(none) β€” literally no parameters, not a single one. 🫢

🌸 Return value 🌸

The current value of the atomic_weak_ptr. πŸ’–

πŸ’œ Remarks πŸ’œ

All associated use_count increments are guaranteed to be performed as part of the atomic operation. no cap, that atomic guarantee is the whole point. πŸ”₯

πŸ¦‹ See also πŸ¦‹

  • load β€” atomically obtains the value of the atomic object (public member function).

cute sign-off: source/version is http://cppreference.com, dated 2024.06.10. mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from