xtd 0.2.0
Loading...
Searching...
No Matches

◆ block_scope_

#define block_scope_ (   ...)

#include <xtd.core/include/xtd/block_scope.h>

The specified expression is cleared automatically when the scope is ended.

Header
#include <xtd/block_scope>
Namespace
xtd
Library
xtd.core
Examples
// values is released automatically after the end closure }.
block_scope_(auto values = {1, 2, 3, 4, 5}) {
cout << string::join(", ", values) << endl;
}
#define block_scope_(...)
The specified expression is cleared automatically when the scope is ended.
Definition block_scope.h:25
Remarks
same as using_
Examples
binary_reader.cpp, binary_reader2.cpp, block_scope.cpp, file_info.cpp, file_info_append_text.cpp, file_info_open.cpp, file_info_open_read.cpp, file_info_open_text.cpp, file_info_open_write.cpp, jthread.cpp, lock_guard.cpp, and process.cpp.