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