Namespaces
Variants
Actions

std::experimental::atomic_weak_ptr

From cppreference.com
 
C++
 
Experimental
Technical Specification
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
Experimental Non-TS
Pattern Matching
Linear Algebra
std::execution
Contracts
2D Graphics
 
Extensions for concurrency
 
std::experimental::atomic_weak_ptr
Defined in header <experimental/atomic>
template< class T >
class atomic_weak_ptr;
(concurrency TS)

The class template atomic_weak_ptr provides thread-safe atomic pointer operations over a std::weak_ptr.

[edit] Member functions

constructs an atomic_weak_ptr object
(public member function) [edit]
stores a value into an atomic_weak_ptr object
(public member function) [edit]
checks if the atomic_weak_ptr object is lock-free
(public member function) [edit]
atomically replaces the value of the atomic object with a non-atomic argument
(public member function) [edit]
atomically obtains the value of the atomic object
(public member function) [edit]
loads a value from an atomic object
(public member function) [edit]
atomically replaces the value of the atomic object and obtains the value held previously
(public member function) [edit]
atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not
(public member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant