gtopt::LpReplayBuffer::ReplayGuard class

RAII helper for scope-bound use inside apply_post_load_replay. Prefer this over manual set_replaying(true) / set_replaying(false) to ensure the flag is always cleared even on exceptions.

Constructors, destructors, conversion operators

ReplayGuard(const ReplayGuard&) deleted
ReplayGuard(LpReplayBuffer& buf) explicit noexcept
ReplayGuard(ReplayGuard&&) deleted
~ReplayGuard() noexcept

Public functions

auto operator=(const ReplayGuard&) -> ReplayGuard& deleted
auto operator=(ReplayGuard&&) -> ReplayGuard& deleted