Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
scope_exit< F > Class Template Reference

#include <scope_exit.h>

Public Member Functions

 scope_exit (F &&f)
 
 scope_exit (scope_exit const &)=delete
 
scope_exitoperator= (scope_exit const &)=delete
 
 ~scope_exit ()
 

Private Attributes

std::decay_t< F > f
 

Detailed Description

template<typename F>
class scope_exit< F >

Definition at line 14 of file scope_exit.h.

Constructor & Destructor Documentation

◆ scope_exit() [1/2]

template<typename F >
scope_exit< F >::scope_exit ( F &&  f)
inline

Definition at line 17 of file scope_exit.h.

◆ scope_exit() [2/2]

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

◆ ~scope_exit()

template<typename F >
scope_exit< F >::~scope_exit ( )
inline

Definition at line 20 of file scope_exit.h.

References scope_exit< F >::f.

Member Function Documentation

◆ operator=()

template<typename F >
scope_exit & scope_exit< F >::operator= ( scope_exit< F > const &  )
delete

Member Data Documentation

◆ f

template<typename F >
std::decay_t<F> scope_exit< F >::f
private

Definition at line 23 of file scope_exit.h.

Referenced by scope_exit< F >::~scope_exit().


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