#include <userver/utils/statistics/relaxed_counter.hpp>
Atomic counter of type T with relaxed memory ordering.
Definition at line 16 of file relaxed_counter.hpp.
Public Types | |
using | ValueType = T |
Public Member Functions | |
constexpr | RelaxedCounter (T desired) noexcept |
RelaxedCounter (const RelaxedCounter &other) noexcept | |
RelaxedCounter & | operator= (const RelaxedCounter &other) noexcept |
RelaxedCounter & | operator= (T desired) noexcept |
void | Store (T desired) noexcept |
T | Load () const noexcept |
operator T () const noexcept | |
RelaxedCounter & | operator++ () noexcept |
T | operator++ (int) noexcept |
RelaxedCounter & | operator-- () noexcept |
T | operator-- (int) noexcept |
RelaxedCounter & | operator+= (T arg) noexcept |
RelaxedCounter & | operator-= (T arg) noexcept |
using utils::statistics::RelaxedCounter< T >::ValueType = T |
Definition at line 18 of file relaxed_counter.hpp.
|
inlineconstexprnoexcept |
Definition at line 21 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 23 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 41 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 43 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 45 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 50 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 63 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 54 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 59 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 68 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 25 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 32 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 37 of file relaxed_counter.hpp.