OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::func_on_scope_exit< Func, OnException > Class Template Reference

Class storing a callable object and an instance of on_scope_exit. More...

#include <eagine/scope_exit.hpp>

Public Member Functions

 func_on_scope_exit (Func func)
 Initialization from the specified callable object.
 
void cancel () noexcept
 Cancels this on scope exit action.
 

Detailed Description

template<typename Func, typename OnException = nothing_t>
class eagine::func_on_scope_exit< Func, OnException >

Class storing a callable object and an instance of on_scope_exit.

Template Parameters
Functype of the callable function object.
See also
on_scope_exit
finally

This class stores a copy of the specified callable object and an instance of on_scope_exit referencing and invoking the callable when desctoyed.

Note
Do not use directly, use the finally function to construct.

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).