tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
move.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_UTILITY_MOVE_HPP
4#define TETL_UTILITY_MOVE_HPP
5
7
8namespace etl {
9
17template <typename T>
18constexpr auto move(T&& t) noexcept -> etl::remove_reference_t<T>&&
19{
20 return static_cast<etl::remove_reference_t<T>&&>(t);
21}
22
23} // namespace etl
24
25#endif // TETL_UTILITY_MOVE_HPP
constexpr auto move(InputIt first, InputIt last, OutputIt destination) -> OutputIt
Moves the elements in the range [first, last), to another range beginning at destination,...
Definition move.hpp:26
typename remove_reference< T >::type remove_reference_t
Definition remove_reference.hpp:28
Definition adjacent_find.hpp:8