tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
copy.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_ALGORITHM_COPY_HPP
4
#define TETL_ALGORITHM_COPY_HPP
5
6
namespace
etl
{
7
17
template
<
typename
InputIt,
typename
OutputIt>
18
constexpr
auto
copy
(InputIt first, InputIt last, OutputIt destination) -> OutputIt
19
{
20
for
(; first != last; ++first, (void)++destination) {
21
*destination = *first;
22
}
23
return
destination;
24
}
25
26
}
// namespace etl
27
28
#endif
// TETL_ALGORITHM_COPY_HPP
etl::copy
constexpr auto copy(InputIt first, InputIt last, OutputIt destination) -> OutputIt
Copies the elements in the range, defined by [first, last), to another range beginning at destination...
Definition
copy.hpp:18
etl
Definition
adjacent_find.hpp:8
include
etl
_algorithm
copy.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0