Returns true if the scope guard is active, otherwise false.

Synopsis

Declared in header <boost/scope/scope_exit.hpp>

bool
active() const noexcept;

Description

Note
This method does not call the condition function object specified on construction. Throws: Nothing.

Return Value

  • bool