C++ Atomic Library - operator add



Description

It is used to increment 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 after the modification.

Exceptions

No-noexcept − this member function never throws exceptions.

atomic.htm
Advertisements