10#define MR_FINALLY DETAIL_MR_FINALLY( ScopeGuard )
12#define DETAIL_MR_FINALLY( type_ ) \
13 auto MR_CONCAT( _mrScopeGuard, __COUNTER__ ) = ::MR::detail::MakeScopeGuard<::MR::detail::type_>{} ->* [&]() -> void
30template <
template <
typename>
typename T>
36 return T<F>( std::move( func ) );
~ScopeGuard()
Definition MRFinally.h:27
ScopeGuard(F &&func)
Definition MRFinally.h:24
ScopeGuard & operator=(const ScopeGuard &)=delete
ScopeGuard(const ScopeGuard &)=delete
for internal use: namespace detail is not bound to other languages
Definition MRFastInt.h:19
Definition MRFinally.h:32
T< F > operator->*(F &&func)
Definition MRFinally.h:34