39template <
typename Functor>
43 : functor_(std::forward<Functor>(functor)), dismissed_(
false) {}
46 : functor_(std::move(other.functor_)), dismissed_(other.dismissed_) {
47 other.dismissed_ =
true;
50 template <
typename OtherFunctor>
52 : functor_(std::move(other.functor_)), dismissed_(other.dismissed_) {
53 other.dismissed_ =
true;
64 functor_ = std::move(other.functor_);
65 dismissed_ = std::move(other.dismissed_);
66 other.dismissed_ =
true;
78 template <
typename OtherFunctor>
86template <
typename Function>
Definition: scope_guard.h:40
fit::function_impl< function_internal::config::kInlineCallableSize, !function_internal::config::kEnableDynamicAllocation, FunctionType, PW_FUNCTION_DEFAULT_ALLOCATOR_TYPE > Function
Definition: function.h:73
void Dismiss()
Definition: scope_guard.h:75
The Pigweed namespace.
Definition: alignment.h:27