ThreadSchedule 4.1.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::detail::scope_exit< F > Class Template Reference

#include <scope_exit.hpp>

Public Member Functions

 scope_exit (F &&function) noexcept(std::is_nothrow_move_constructible_v< F >)
 scope_exit (scope_exit const &)=delete
auto operator= (scope_exit const &) -> scope_exit &=delete
 scope_exit (scope_exit &&)=delete
auto operator= (scope_exit &&) -> scope_exit &=delete
 ~scope_exit () noexcept
void release () noexcept

Detailed Description

template<typename F>
class threadschedule::detail::scope_exit< F >

Definition at line 10 of file scope_exit.hpp.

Constructor & Destructor Documentation

◆ scope_exit() [1/3]

template<typename F>
threadschedule::detail::scope_exit< F >::scope_exit ( F && function)
inlineexplicitnoexcept

Definition at line 13 of file scope_exit.hpp.

Referenced by operator=(), operator=(), scope_exit(), and scope_exit().

◆ scope_exit() [2/3]

template<typename F>
threadschedule::detail::scope_exit< F >::scope_exit ( scope_exit< F > const & )
delete

References scope_exit().

◆ scope_exit() [3/3]

template<typename F>
threadschedule::detail::scope_exit< F >::scope_exit ( scope_exit< F > && )
delete

References scope_exit().

◆ ~scope_exit()

template<typename F>
threadschedule::detail::scope_exit< F >::~scope_exit ( )
inlinenoexcept

Definition at line 22 of file scope_exit.hpp.

Member Function Documentation

◆ operator=() [1/2]

template<typename F>
auto threadschedule::detail::scope_exit< F >::operator= ( scope_exit< F > && ) ->scope_exit &=delete
delete

References scope_exit().

◆ operator=() [2/2]

template<typename F>
auto threadschedule::detail::scope_exit< F >::operator= ( scope_exit< F > const & ) ->scope_exit &=delete
delete

References scope_exit().

◆ release()

template<typename F>
void threadschedule::detail::scope_exit< F >::release ( )
inlinenoexcept

Definition at line 29 of file scope_exit.hpp.


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