3#ifndef TETL_ALGORITHM_REMOVE_IF_HPP
4#define TETL_ALGORITHM_REMOVE_IF_HPP
15template <
typename ForwardIt,
typename Predicate>
16[[nodiscard]]
constexpr auto remove_if(ForwardIt first, ForwardIt last, Predicate pred) -> ForwardIt
18 first =
find_if(first, last, pred);
21 for (
auto i = first; ++i != last;) {
constexpr auto find_if(InputIt first, InputIt last, Predicate pred) noexcept -> InputIt
Searches for an element for which predicate p returns true.
Definition find_if.hpp:18
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:16
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
Definition adjacent_find.hpp:8