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_ALGORITHM_MOVE_HPP
4
#define TETL_ALGORITHM_MOVE_HPP
5
6
#include <
etl/_utility/move.hpp
>
7
8
namespace
etl
{
9
25
template
<
typename
InputIt,
typename
OutputIt>
26
constexpr
auto
move
(InputIt first, InputIt last, OutputIt destination) -> OutputIt
27
{
28
for
(; first != last; ++first, (void)++destination) {
29
*destination =
etl::move
(*first);
30
}
31
return
destination;
32
}
33
34
}
// namespace etl
35
36
#endif
// TETL_ALGORITHM_MOVE_HPP
move.hpp
etl::move
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
etl
Definition
adjacent_find.hpp:8
include
etl
_algorithm
move.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0