hpx::experimental::scope_fail
Defined in header hpx/experimental/scope.hpp.
See Public API for a list of names and headers that are part of the public
HPX API.
-
namespace hpx
Top level namespace.
-
namespace experimental
Functions
-
template<typename F>
HPX_CXX_CORE_EXPORT auto scope_fail(F &&f)
The class template scope_fail is a general-purpose scope guard intended to call its exit function when a scope is exited via an exception.
- Template Parameters
F – type of stored exit function
- Parameters
f – stored exit function