tenno
0.1.0
Loading...
Searching...
No Matches
utility.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#include <type_traits>
// std::remove_reference_t
9
10
namespace
tenno
11
{
12
20
template
<
typename
T>
21
constexpr
std::remove_reference_t<T> &&
move
(T &&t)
noexcept
22
{
23
return
static_cast<
typename std::remove_reference<T>::type &&
>
(t);
24
}
25
26
}
// namespace tenno
tenno
Definition
algorithm.hpp:11
tenno::move
constexpr std::remove_reference_t< T > && move(T &&t) noexcept
Move a value from one location to another.
Definition
utility.hpp:21
include
tenno
utility.hpp
Generated by
1.12.0