StepGuard
RAII guard for automatic step lifecycle management.
Public Methods
Section titled “Public Methods”StepGuard
Section titled “StepGuard”Copy constructor
void StepGuard( other)Parameters:
| Name | Type | Description |
|---|---|---|
other | “ | The object to copy construct from |
StepGuard
Section titled “StepGuard”Move constructor
void StepGuard( other)Parameters:
| Name | Type | Description |
|---|---|---|
other | “ | The object to move construct from |
StepGuard
Section titled “StepGuard”Construct a step guard and start the step.
void StepGuard(std::string_view name)Parameters:
| Name | Type | Description |
|---|---|---|
name | std::string_view | The name of the step. |
~StepGuard
Section titled “~StepGuard”Destructor automatically ends the step. This is noexcept to prevent exceptions during stack unwinding.
void ~StepGuard()operator=
Section titled “operator=”Copy assignment operator
void operator=( other)Parameters:
| Name | Type | Description |
|---|---|---|
other | “ | The object to copy assign from |
operator=
Section titled “operator=”Move assignment operator
void operator=( other)Parameters:
| Name | Type | Description |
|---|---|---|
other | “ | The object to move assign from |