std::experi...d_ptr::store(3)
π«Ά std::experi...d_ptr::store(3) π«Ά
okay so bestie, welcome to the page for std::experi...d_ptr::store from the C++ Standard Libary (yes, that's the manual name, typo and all β we keep it π
). This is the std::experimental::atomic_shared_ptr::store situation, and it's giving "atomic shared pointer glow-up" β¨.
π NAME π
std::experi...d_ptr::store β std::experimental::atomic_shared_ptr::store
πΈ Synopsis πΈ
void store( shared_ptr<T> desired, std::memory_order order =
std::memory_order_seq_cst ) noexcept;
Atomically replaces the current value with desired. Memory is affected according to the value of order.
π real talk:ordermust be one ofstd::memory_order_relaxed,std::memory_order_release, orstd::memory_order_seq_cst. Otherwise the behavior is undefined. Not a vibe, bestie.
π Parameters π
desiredβ theshared_ptrto store into the atomic variable.orderβ memory order constraints to enforce.
π¦ Return value π¦
(none) β literally no return value. It's a void moment, no cap π.
π Remarks π
- All changes to the
atomic_shared_ptrobject itself, and all associateduse_countincrements, are guaranteed to be performed atomically. - Associated
use_countdecrements take place after the atomic operation, but are not required to be part of it. - Any associated destruction or deallocation operations take place after the atomic operation and are not part of it.
π See also π
operator=β stores a value into anatomic_shared_ptrobject (public member function).std::atomic_is_lock_free(std::shared_ptr)std::atomic_load(std::shared_ptr)std::atomic_load_explicit(std::shared_ptr)std::atomic_store(std::shared_ptr)std::atomic_store_explicit(std::shared_ptr)- specializes atomic operations for
std::shared_ptr(function template) std::atomic_exchange(std::shared_ptr)std::atomic_exchange_explicit(std::shared_ptr)std::atomic_compare_exchange_weak(std::shared_ptr)std::atomic_compare_exchange_strong(std::shared_ptr)std::atomic_compare_exchange_weak_explicit(std::shared_ptr)std::atomic_compare_exchange_strong_explicit(std::shared_ptr)(deprecated in C++20)(removed in C++26)
okay bye bestie β source: http://cppreference.com, version/date: 2024.06.10, manual tag: std::experi...d_ptr::store(3). mwah πβ¨
π¦ 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