General Utility Library for C++14
2.11
|
Implementation of FinalAction and finally().
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/.
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... | |