std::experi...rshared_ptr(3)
okay so you're looking at std::experi...rshared_ptr(3), and the manual it lives in is the C++ Standard Libary β yes bestie, that's the whole vibe. This page is about the conversion operator, and it's lowkey iconic because it hands you a shared_ptr<T> atomically. slay. β¨
β¨ NAME β¨
std::experimental::atomic_shared_ptr::operatorshared_ptr β okay so that's the name, and yeah, it's also std::experimental::atomic_shared_ptr::operatorshared_ptr. It's giving "operator that converts to shared_ptr," fr fr. π
πΈ Synopsis πΈ
operator shared_ptr<T>() const noexcept;
Atomically loads and returns the current value of the atomic_shared_ptr. Equivalent to load(). no cap. π«Ά
π Parameters π
(none)β literally no parameters, bestie. Not a single one. π
π Return value π
The current value of the atomic_shared_ptr. That's it, that's the tea. β¨
π₯ Remarks π₯
All associated use_count increments are guaranteed to be performed as part of the atomic operation. So like, those increments are not off doing their own chaotic little side quest β they're part of the atomic operation. periodt. π«Ά
π¦ See also π¦
loadβ atomically obtains the value of the atomic object (public member function). iconic sibling behavior, iykyk. π
source: http://cppreference.com, version/date: 2024.06.10, for std::experi...rshared_ptr(3) β bye bestie, go atomically load 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