Allocator Builder
Policy Based C++ Template Allocator Library
|
#include <noatomic.hpp>
Public Types | |
using | type = T |
Public Member Functions | |
no_atomic (T v) noexcept | |
T | load () const noexcept |
no_atomic & | operator= (T v) noexcept |
bool | compare_exchange_strong (T &, T v) noexcept |
operator T () const | |
T | operator++ () |
T | operator++ (int) |
T | operator-- () |
T | operator-- (int) |
T | operator+= (T arg) |
T | operator-= (T arg) |
Template that mimics (partly) the std::atomic<T> interface, without beeing an atomic. It is usefull, if during compilation time the selection between single threaded or multi threaded is needed
T | The value that the class encapsulate |
Definition at line 26 of file noatomic.hpp.