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

Detailed Description

Implementation of FinalAction and finally().

Authors
General Utility Library Contributors
Date
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 https://www.gnu.org/licenses/.

#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.

Classes

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

Namespaces

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

Functions

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