distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
ScopeGuard.hpp File Reference

ScopeGuard template class header. More...

#include <utility>
Include dependency graph for ScopeGuard.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  estd::ScopeGuard< Function >
 ScopeGuard template class is a idiom introduced by Andrei Alexandrescu and proposed for C++14 in N3949. More...
 

Namespaces

 estd
 Collection of useful templates.
 

Functions

template<typename Function >
ScopeGuard< Function > estd::makeScopeGuard (Function &&function) noexcept
 Helper factory function to make ScopeGuard object with deduced template arguments. More...
 

Detailed Description

ScopeGuard template class header.

Author
Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.