Scroom  0.14
Scroom::Utils::on_scope_exit< F > Class Template Reference

#include <utilities.hh>

Collaboration diagram for Scroom::Utils::on_scope_exit< F >:
Collaboration graph

Public Member Functions

 on_scope_exit (F f_)
 
 on_scope_exit (const on_scope_exit &)=delete
 
 on_scope_exit (on_scope_exit &&)=delete
 
on_scope_exitoperator= (const on_scope_exit &)=delete
 
on_scope_exitoperator= (on_scope_exit &&)=delete
 
 ~on_scope_exit ()
 

Private Attributes

f
 

Constructor & Destructor Documentation

◆ on_scope_exit() [1/3]

template<typename F >
Scroom::Utils::on_scope_exit< F >::on_scope_exit ( f_)
inlineexplicit
60  : f(std::move(f_))
61  {
62  }

◆ on_scope_exit() [2/3]

template<typename F >
Scroom::Utils::on_scope_exit< F >::on_scope_exit ( const on_scope_exit< F > &  )
delete

◆ on_scope_exit() [3/3]

template<typename F >
Scroom::Utils::on_scope_exit< F >::on_scope_exit ( on_scope_exit< F > &&  )
delete

◆ ~on_scope_exit()

template<typename F >
Scroom::Utils::on_scope_exit< F >::~on_scope_exit ( )
inline
68 { f(); }

Member Function Documentation

◆ operator=() [1/2]

template<typename F >
on_scope_exit& Scroom::Utils::on_scope_exit< F >::operator= ( const on_scope_exit< F > &  )
delete

◆ operator=() [2/2]

template<typename F >
on_scope_exit& Scroom::Utils::on_scope_exit< F >::operator= ( on_scope_exit< F > &&  )
delete

Member Data Documentation

◆ f

template<typename F >
F Scroom::Utils::on_scope_exit< F >::f
private

The documentation for this class was generated from the following file:
Scroom::Utils::on_scope_exit::f
F f
Definition: utilities.hh:71