#include <utility>
#include "internal/__xtd_scope.hpp"
Contains scope_exit_ keyword.
- Copyright
- Copyright (c) 2025 Gammasoft. All rights reserved.
Go to the source code of this file.
|
| struct | xtd::scope_exit |
| | Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) technique. It binds resource acquisition and release to initialization and destruction of a variable that holds the resource. There are times when writing a special class for such a variable is not worth the effort. This is when xtd xtd::scope_exit comes into play. xtd::scope_exit is always executed at the end of the scope. More...
|
| |
|
| namespace | xtd |
| | The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
|
| |
|
|
#define | __XTD_CORE_INTERNAL__ |
| |
| #define | scope_exit_ |
| | Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) technique. It binds resource acquisition and release to initialization and destruction of a variable that holds the resource. There are times when writing a special class for such a variable is not worth the effort. This is when xtd scope_exit_ comes into play. scope_exit_ is always executed at the end of the scope.
|
| |