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

◆ using_

#define using_ (   ...)

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

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

Namespace
xtd
Library
xtd.core
Examples
// values is released automatically after the end closure }.
using_(auto values = {1, 2, 3, 4, 5}) {
cout << string::join(", ", values) << endl;
}
#define using_(...)
The specified expression is cleared automatically when the scope is ended.
Definition using.h:33
same as :
using_(auto values = {1, 2, 3, 4, 5})
cout << string::join(", ", values) << endl;
same as :
{
auto values = {1, 2, 3, 4, 5};
cout << string::join(", ", values) << endl;
}
Remarks
same as block_scope_
Examples
binary_reader3.cpp, and using.cpp.