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