Allocator Builder
Policy Based C++ Template Allocator Library
 All Classes Functions Variables Enumerations Enumerator Groups Pages
alb::v_100::internal::no_atomic< T > Class Template Reference

#include <noatomic.hpp>

Public Types

using type = T
 

Public Member Functions

 no_atomic (T v) noexcept
 
load () const noexcept
 
no_atomicoperator= (T v) noexcept
 
bool compare_exchange_strong (T &, T v) noexcept
 
 operator T () const
 
operator++ ()
 
operator++ (int)
 
operator-- ()
 
operator-- (int)
 
operator+= (T arg)
 
operator-= (T arg)
 

Detailed Description

template<typename T>
class alb::v_100::internal::no_atomic< T >

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

Template Parameters
TThe value that the class encapsulate

Definition at line 26 of file noatomic.hpp.


The documentation for this class was generated from the following file: