std::atomic_ref::load(3)
πΈ NAME πΈ
< pink>okay so bestie, this page is std::atomic_ref::load(3) from the C++ Standard Libary manual β and the name is literally std::atomic_ref::load - std::atomic_ref::load. iconic. periodt. π
β¨ Synopsis β¨
T load( std::memory_order order = std::memory_order_seq_cst ) const
(since C++20)
noexcept;
< purple>okay so the vibe is: this thing atomically loads and returns the current value of the referenced object. Memory is affected according to the value of order.
order must be one of std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire or std::memory_order_seq_cst. Otherwise the behavior is undefined β not a cute mystery, fr fr, donβt do it. π
π Parameters π
orderβ memory order constraints to enforce π«Ά
π Return value π
The current value of the referenced object. Thatβs it. Thatβs the tea. β¨
π¦ See also π¦
operator Tβ loads a value from the referenced object (public member function) π
made with π by the C++ Standard Libary girlies Β· source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::atomic_ref::load(3) π
π¦ 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