4 ms·
Sentry classes, which are a generalization of RAII, are used idiomatically in C++ for non-allocation tasks, such as whitespace skipping, logging, and profiling.
by hythloday 15y ago
Sentry classes, which are a generalization of RAII, are used idiomatically in C++ for non-allocation tasks, such as whitespace skipping, logging, and profiling.
- JoeAltmaier 15y agoAlso mapping state to scope e.g. mutex objects that set/clear on ctor/dtor