A helper object which returns a boolean value just once and toggles it after the first query. More...
#include "InsightsOnce.h"
Public Member Functions | |
Once ()=default | |
Once (bool value) | |
operator bool () | |
A helper object which returns a boolean value just once and toggles it after the first query.
This allows to simplify code like this:
into this:
Definition at line 31 of file InsightsOnce.h.
|
default |
|
inline |
Definition at line 35 of file InsightsOnce.h.
|
inline |
Definition at line 40 of file InsightsOnce.h.