Function operator--

Summary

#include "breeze/counting/counter.hpp"

(1) counter & operator--() &

(2) counter operator--(int) &

Function overload

Synopsis

#include "breeze/counting/counter.hpp"

counter & operator--() &

Description

Pre-decrements the counter. Can only be called on lvalues.

This function checks for logical underflow (including if IntegralType is unsigned), by executing:

BREEZE_ASSERT( value() > 0 ) ;

before decrementing the counter value.

Source

Line 84 in breeze/counting/counter.hpp.

Synopsis

#include "breeze/counting/counter.hpp"

counter operator--(int) &

Description

Post-decrements the counter. Can only be called on lvalues.

Before decrementing the counter value, this function does the same BREEZE_ASSERT() check as the pre-decrement function.

Source

Line 93 in breeze/counting/counter.hpp.