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-increments the counter. Can only be called on lvalues.

This functions checks for logical overflow (including if IntegralType is unsigned), by executing:

BREEZE_ASSERT(
    value() < std::numeric_limits< IntegralType >::max() ) ;

before incrementing the counter value.

Source

Line 62 in breeze/counting/counter.hpp.

Synopsis

#include "breeze/counting/counter.hpp"

counter operator++(int) &

Description

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

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

Source

Line 71 in breeze/counting/counter.hpp.