General Utility Library for C++14  2.11
Classes | Namespaces | Functions
finalizer.h File Reference

Detailed Description

Implementation of FinalAction and finally().

General Utility Library Contributors
Created on 23 October 2018

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the license, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see

#include <type_traits>
#include <utility>
#include "gul14/internal.h"
Include dependency graph for finalizer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  gul14::FinalAction< F >
 FinalAction allows us to execute something if the FinalAction object leaves the scope. More...


 Namespace gul14 contains all functions and classes of the General Utility Library.


template<typename F >
FinalAction< typename std::decay_t< F > > gul14::finally (F &&f) noexcept
 finally() - convenience function to generate a FinalAction More...