37template <
typename Functor>
41 : functor_(std::forward<Functor>(functor)), dismissed_(
false) {}
44 : functor_(std::move(other.functor_)), dismissed_(other.dismissed_) {
45 other.dismissed_ =
true;
48 template <
typename OtherFunctor>
50 : functor_(std::move(other.functor_)), dismissed_(other.dismissed_) {
51 other.dismissed_ =
true;
62 functor_ = std::move(other.functor_);
63 dismissed_ = std::move(other.dismissed_);
64 other.dismissed_ =
true;
76 template <
typename OtherFunctor>
84template <
typename Function>
Definition: scope_guard.h:38
void Dismiss()
Definition: scope_guard.h:73
fit::function_impl< function_internal::config::kInlineCallableSize, !function_internal::config::kEnableDynamicAllocation, FunctionType, PW_FUNCTION_DEFAULT_ALLOCATOR_TYPE > Function
Definition: function.h:74
Provides basic helpers for reading and writing UTF-8 encoded strings.
Definition: alignment.h:27