Skip to content
GitHub

StepGuard

RAII guard for automatic step lifecycle management.

Copy constructor

void StepGuard( other)

Parameters:

NameTypeDescription
otherThe object to copy construct from

Move constructor

void StepGuard( other)

Parameters:

NameTypeDescription
otherThe object to move construct from

Construct a step guard and start the step.

void StepGuard(std::string_view name)

Parameters:

NameTypeDescription
namestd::string_viewThe name of the step.

Destructor automatically ends the step. This is noexcept to prevent exceptions during stack unwinding.

void ~StepGuard()

Copy assignment operator

void operator=( other)

Parameters:

NameTypeDescription
otherThe object to copy assign from

Move assignment operator

void operator=( other)

Parameters:

NameTypeDescription
otherThe object to move assign from