34 value.store(initial, std::memory_order_relaxed);
38 value.store(other.value.load(std::memory_order_relaxed),
39 std::memory_order_relaxed);
43 return value.load(std::memory_order_relaxed);
47 return value.load(std::memory_order_relaxed);
51 value.store(rhs.load(), std::memory_order_relaxed);
56 value.store(val, std::memory_order_relaxed);
61 return value.fetch_add(1, std::memory_order_relaxed) + 1;
65 return value.fetch_add(1, std::memory_order_relaxed);
69 return value.fetch_sub(1, std::memory_order_relaxed) - 1;
73 return value.fetch_sub(1, std::memory_order_relaxed);
85 value.store(initial, std::memory_order_relaxed);
89 value.store(other.load(), std::memory_order_relaxed);
92 operator std::string()
const {
93 return std::string(value.load(std::memory_order_relaxed));
Definition: relaxed_atomic.h:80
Definition: category_registry.h:32
Definition: relaxed_atomic.h:29