staticlib_support  1.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Classes | Namespaces | Functions
defer.hpp File Reference
#include <utility>
#include "staticlib/config.hpp"

Go to the source code of this file.

Classes

class  staticlib::support::detail_defer::defer_guard< T >
 Holder object for a lambda, that will be executed on destruction. More...

Namespaces

namespace  staticlib
namespace  staticlib::support
namespace  staticlib::support::detail_defer

Functions

template<typename T >
detail_defer::defer_guard< T > staticlib::support::defer (T func)
 Creates a "guard object", that will execute specified lambda function on destruction.