23  template<
typename function_t>
 
   24  struct __xtd_call_once_object__ {
 
   25    __xtd_call_once_object__(function_t function) { function(); }
 
   28  template<
typename function_t>
 
   29  auto operator +(call_once, function_t&& function) {
 
   30    return __xtd_call_once_object__<function_t>{std::forward<function_t>(function)};
 
   36#define __xtd_call_once_cat__(name, line) name##line 
   37#define __xtd_call_once_id__(name, line) __xtd_call_once_cat__(name, line) 
   50#define call_once_ [[maybe_unused]] static auto __xtd_call_once_id__(__xtd__call_once__, __LINE__) = xtd::call_once {} + [&] 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
The xtd::call_once struct can be used to execute a routine exactly once. This can be used to initiali...
Definition call_once.hpp:19