The Battle for Wesnoth  1.17.21+dev
Public Member Functions | Private Attributes | List of all members
utils::scope_exit< F > Class Template Reference

#include <scope_exit.hpp>

Public Member Functions

 scope_exit (F &&f)
 ~scope_exit ()

Private Attributes


Detailed Description

template<typename F>
class utils::scope_exit< F >

Definition at line 23 of file scope_exit.hpp.

Constructor & Destructor Documentation

◆ scope_exit()

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

Definition at line 26 of file scope_exit.hpp.

◆ ~scope_exit()

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

Definition at line 27 of file scope_exit.hpp.

Member Data Documentation

◆ f_

template<typename F >
F utils::scope_exit< F >::f_

Definition at line 24 of file scope_exit.hpp.

Referenced by utils::scope_exit_syntax_support::operator<<().

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