Wire Sysio Wire Sysion 1.0.0
|
#include <chainbase.hpp>
Public Member Functions | |
int_incrementer (int32_t &target) | |
~int_incrementer () | |
int32_t | get () const |
The code we want to implement is this:
++target; try { ... } finally { –target }
In C++ the only way to implement finally is to create a class with a destructor, so that's what we do here.
Definition at line 120 of file chainbase.hpp.
|
inline |
Definition at line 123 of file chainbase.hpp.
|
inline |
Definition at line 125 of file chainbase.hpp.
|
inline |
Definition at line 128 of file chainbase.hpp.