The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Attributes | List of all members
utils::scope_exit Class Reference

#include <scope_exit.hpp>

Public Member Functions

template<typename F >
 scope_exit (F &&f)
 ~scope_exit ()

Private Attributes

std::function< void()> f_

Detailed Description

Definition at line 22 of file scope_exit.hpp.

Constructor & Destructor Documentation

◆ scope_exit()

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

Definition at line 27 of file scope_exit.hpp.

◆ ~scope_exit()

utils::scope_exit::~scope_exit ( )

Definition at line 28 of file scope_exit.hpp.

References f_.

Member Data Documentation

◆ f_

std::function<void ()> utils::scope_exit::f_

Definition at line 24 of file scope_exit.hpp.

Referenced by ~scope_exit().

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