xtd 0.2.0
Loading...
Searching...
No Matches
create_ref.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "ref.hpp"
6
8namespace xtd {
22 template<typename type_t>
23 [[nodiscard]] auto create_ref(type_t& arg) noexcept -> ref<type_t> {return ref<type_t> {arg};}
37 template<typename type_t>
38 [[nodiscard]] auto create_ref(ref<type_t> arg) noexcept -> ref<type_t> {return arg;}
39}
xtd::reference_wrapper_object< type_t > ref
The xtd::ref object is a reference wrapper.
Definition ref.hpp:25
auto create_ref(type_t &arg) noexcept -> ref< type_t >
xtd::new_uptr operator. This operator creates a xtd::ref object.
Definition create_ref.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::ref type.