An RAII wrapper for std::atomic<T*>.
More...
#include <AtomicUniquePtr.h>
template<typename T>
class cAtomicUniquePtr< T >
An RAII wrapper for std::atomic<T*>.
Definition at line 8 of file AtomicUniquePtr.h.
◆ cAtomicUniquePtr() [1/2]
◆ cAtomicUniquePtr() [2/2]
◆ ~cAtomicUniquePtr()
◆ compare_exchange_strong()
template<typename T >
bool cAtomicUniquePtr< T >::compare_exchange_strong |
( |
T *& |
a_Expected, |
|
|
std::unique_ptr< T > && |
a_Desired, |
|
|
std::memory_order |
a_Order = std::memory_order_seq_cst |
|
) |
| |
|
inlinenoexcept |
◆ compare_exchange_weak()
template<typename T >
bool cAtomicUniquePtr< T >::compare_exchange_weak |
( |
T *& |
a_Expected, |
|
|
std::unique_ptr< T > && |
a_Desired, |
|
|
std::memory_order |
a_Order = std::memory_order_seq_cst |
|
) |
| |
|
inlinenoexcept |
◆ DISALLOW_COPY_AND_ASSIGN()
◆ exchange()
template<typename T >
std::unique_ptr<T> cAtomicUniquePtr< T >::exchange |
( |
std::unique_ptr< T > |
a_Ptr, |
|
|
std::memory_order |
a_Order = std::memory_order_seq_cst |
|
) |
| |
|
inlinenoexcept |
◆ load()
template<typename T >
T* cAtomicUniquePtr< T >::load |
( |
std::memory_order |
a_Order = std::memory_order_seq_cst | ) |
const |
|
inlinenoexcept |
◆ operator T*()
◆ operator=()
◆ store()
template<typename T >
void cAtomicUniquePtr< T >::store |
( |
std::unique_ptr< T > |
a_Ptr, |
|
|
std::memory_order |
a_Order = std::memory_order_seq_cst |
|
) |
| |
|
inlinenoexcept |
◆ m_Ptr
The documentation for this class was generated from the following file: