xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
scope_success.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <utility>
6
#define __XTD_CORE_INTERNAL__
7
#include "
internal/__xtd_scope.hpp
"
8
#undef __XTD_CORE_INTERNAL__
9
11
namespace
xtd
{
65
struct
scope_success
{ };
66
68
template
<
typename
function_t>
69
auto
operator+(
scope_success
, function_t&& function) {
70
return
__xtd_scope_success_object__<function_t> {std::forward<function_t>(function)};
71
}
73
}
74
128
#define scope_success_ \
129
[[maybe_unused]] auto __xtd_scope_id__(__xtd__scope_success__, __LINE__) = xtd::scope_success{} + [&]
__xtd_scope.hpp
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::scope_success
Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) tech...
Definition
scope_success.hpp:65
Generated on
for xtd by
Gammasoft
. All rights reserved.