4#ifndef TETL_ALGORITHM_REMOVE_IF_HPP
5#define TETL_ALGORITHM_REMOVE_IF_HPP
7#include <etl/_algorithm/find_if.hpp>
8#include <etl/_utility/move.hpp>
16template <
typename ForwardIt,
typename Predicate>
17[[nodiscard]]
constexpr auto remove_if(ForwardIt first, ForwardIt last, Predicate pred) -> ForwardIt
19 first = find_if(first, last, pred);
22 for (
auto i = first; ++i != last;) {
24 *first++ =
etl::move(*i);
constexpr auto remove_if(ForwardIt first, ForwardIt last, Predicate pred) -> ForwardIt
Removes all elements satisfying specific criteria from the range [first, last) and returns a past-the...
Definition remove_if.hpp:17
Definition adjacent_find.hpp:9