acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
transfer.h
1
//
2
// transfer.h
3
// acme
4
//
5
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 31/05/22.
6
// Copyright (c) 2022 Camilo Sasuke Thomas Borregaard Soerensen. All rights reserved.
7
//
8
#pragma once
9
10
11
template
<
typename
TYPE >
12
inline
13
non_reference < TYPE > && transfer(TYPE && t)
14
{
15
16
return
static_cast<
non_reference< TYPE > &&
>
(t);
17
18
}
19
20
21
template
<
typename
TYPE >
22
inline
23
const
non_reference < TYPE > &&transfer(
const
TYPE && t)
24
{
25
26
return
static_cast <
const
non_const < non_reference < TYPE >
>
&& >(t);
27
28
}
29
30
template
<
typename
TYPE >
31
inline
32
const
non_reference < TYPE > * && transfer(TYPE *
const
& t)
33
{
34
35
return
(
const
non_reference < non_const < TYPE > > * &&)((
const
non_const < TYPE > * &) t);
36
37
}
38
39
40
41
prototype
prototype
transfer.h
Generated by
1.17.0