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
10namespace tenno
11{
12
20template <typename T>
21constexpr 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
constexpr std::remove_reference_t< T > && move(T &&t) noexcept
Move a value from one location to another.
Definition utility.hpp:21