class
std::hazard_pointer
- Header
<hazard_pointer>- Scope
std- cppreference
- <hazard_pointer> nearest page
Synopsis
class hazard_pointer;Member functions
| Name | Declaration |
|---|---|
hazard_pointerconstructor · 2 overloads | hazard_pointer() +1 more |
~hazard_pointerdestructor | ~hazard_pointer() |
operator=operator | hazard_pointer& operator=(hazard_pointer&& other) |
emptymember function | bool empty() const |
protectmember function template | T* protect(const atomic<T*>& src) |
reset_protectionmember function · 2 overloads | void reset_protection(nullptr_t) +1 more |
swapmember function | void swap(hazard_pointer& other) |
try_protectmember function template | bool try_protect(T*& ptr, const atomic<T*>& src) |