Template Struct ImplicitContextResetter

Struct Documentation

template<typename Ctx>
struct ImplicitContextResetter

pops the overlay pushed by set_scoped_implicit_context() when leaving scope

Public Functions

ImplicitContextResetter() = default
inline explicit ImplicitContextResetter(const void *overlay) noexcept
inline ~ImplicitContextResetter() noexcept

Note

a scope ended out of order trips an assertion; since this is noexcept, under SEQUANT_ASSERT_BEHAVIOR=THROW that calls std::terminate

ImplicitContextResetter(const ImplicitContextResetter&) = delete
ImplicitContextResetter(ImplicitContextResetter&&) = delete
ImplicitContextResetter &operator=(const ImplicitContextResetter&) = delete
ImplicitContextResetter &operator=(ImplicitContextResetter&&) = delete