tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
remove_copy.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_ALGORITHM_REMOVE_COPY_HPP
4#define TETL_ALGORITHM_REMOVE_COPY_HPP
5
7
8namespace etl {
9
16template <typename InputIt, typename OutputIt, typename T>
17constexpr auto remove_copy(InputIt first, InputIt last, OutputIt destination, T const& value) -> OutputIt
18{
19 return etl::remove_copy_if(first, last, destination, [&value](auto const& item) { return item == value; });
20}
21
22} // namespace etl
23
24#endif // TETL_ALGORITHM_REMOVE_COPY_HPP
constexpr auto remove_copy_if(InputIt first, InputIt last, OutputIt destination, Predicate p) -> OutputIt
Copies elements from the range [first, last), to another range beginning at destination,...
Definition remove_copy_if.hpp:15
constexpr auto remove_copy(InputIt first, InputIt last, OutputIt destination, T const &value) -> OutputIt
Copies elements from the range [first, last), to another range beginning at destination,...
Definition remove_copy.hpp:17
Definition adjacent_find.hpp:8