Iros
 
Loading...
Searching...
No Matches
di::ScopeExit< F > Class Template Reference

#include <di/util/scope_exit.h>

Public Member Functions

template<typename G>
requires (!concepts::RemoveCVRefSameAs<G, ScopeExit> && concepts::ConstructibleFrom<F, G>)
constexpr ScopeExit (G &&function)
 
constexpr ScopeExit (ScopeExit &&other)
 
constexpr ~ScopeExit ()
 
auto operator= (ScopeExit &&) -> ScopeExit &=delete
 
constexpr void release ()
 

Constructor & Destructor Documentation

◆ ScopeExit() [1/2]

template<concepts::InvocableTo< void > F>
template<typename G>
requires (!concepts::RemoveCVRefSameAs<G, ScopeExit> && concepts::ConstructibleFrom<F, G>)
di::util::ScopeExit< F >::ScopeExit ( G && function)
inlineexplicitconstexpr

◆ ScopeExit() [2/2]

template<concepts::InvocableTo< void > F>
di::util::ScopeExit< F >::ScopeExit ( ScopeExit< F > && other)
inlineconstexpr

◆ ~ScopeExit()

template<concepts::InvocableTo< void > F>
di::util::ScopeExit< F >::~ScopeExit ( )
inlineconstexpr

Member Function Documentation

◆ operator=()

template<concepts::InvocableTo< void > F>
auto di::util::ScopeExit< F >::operator= ( ScopeExit< F > && ) -> ScopeExit &=delete
delete

◆ release()

template<concepts::InvocableTo< void > F>
void di::util::ScopeExit< F >::release ( )
inlineconstexpr

The documentation for this class was generated from the following file: