C++ Atomic Library - operator sub



Description

It is used to decrement container value.

Declaration

Following is the declaration for std::atomic::operator--

T operator--() noexcept;

C++11

T operator--() volatile noexcept;

Parameters

none

Return Value

It returns the value of the atomic variable before the modification.

Exceptions

No-noexcept − this member function never throws exceptions.

atomic.htm
Advertisements