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_fail comes into play. xtd::scope_fail is executed only if an exception is in progress.
- Namespace
- xtd
- Library
- xtd.core
#include <xtd/xtd>
auto main() -> int {
try {
};
};
};
} catch (...) {
}
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
#define scope_exit_
Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) tech...
Definition scope_exit.hpp:128
#define scope_success_
Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) tech...
Definition scope_success.hpp:128
#define scope_fail_
Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) tech...
Definition scope_fail.hpp:128