|
Console Library 8.0.0
A header-only library that makes C++ simple
|
RAII的作用域宏,在退出作用域时按逆序执行推迟的代码。 More...
#include <type_traits>#include <utility>Go to the source code of this file.
Classes | |
| class | console::DeferGuard< F > |
| 推迟执行的RAII守卫类。 More... | |
Namespaces | |
| namespace | console |
| 本库所有组件所在的顶层命名空间。 | |
Macros | |
| #define | CONSOLE_CONCAT_IMPL(a, b) |
| #define | CONSOLE_CONCAT(a, b) |
| #define | defer(...) |
Functions | |
| template<class F> | |
| DeferGuard< typename std::decay< F >::type > | console::make_defer (F &&f) |
| 工厂函数,创建DeferGuard对象。 | |
RAII的作用域宏,在退出作用域时按逆序执行推迟的代码。
| #define CONSOLE_CONCAT | ( | a, | |
| b ) |
| #define CONSOLE_CONCAT_IMPL | ( | a, | |
| b ) |
| #define defer | ( | ... | ) |