C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
Loading...
Searching...
No Matches
essence::scope_exit< Callable > Class Template Reference
Inheritance diagram for essence::scope_exit< Callable >:
essence::noncopyable

Public Member Functions

template<std::invocable ExitCallable>
requires std::convertible_to<Callable, ExitCallable>
 scope_exit (ExitCallable &&on_exit) noexcept(noexcept(Callable{std::forward< ExitCallable >(on_exit)}))
 
template<std::invocable EntryCallable, std::invocable ExitCallable>
requires std::convertible_to<Callable, ExitCallable>
 scope_exit (EntryCallable &&on_entry, ExitCallable &&on_exit) noexcept(noexcept(Callable{std::forward< ExitCallable >(on_exit)}))
 
 scope_exit (const scope_exit &)=delete
 
 scope_exit (scope_exit &&) noexcept=delete
 
scope_exitoperator= (const scope_exit &)=delete
 
scope_exitoperator= (scope_exit &&) noexcept=delete
 
void release () noexcept
 
- Public Member Functions inherited from essence::noncopyable
 noncopyable (const noncopyable &) noexcept=delete
 
 noncopyable (noncopyable &&) noexcept=default
 
noncopyableoperator= (const noncopyable &) noexcept=delete
 
noncopyableoperator= (noncopyable &&) noexcept=default
 

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