4#include "../Foundation/Compiler.h"
5#include "AlgorithmFind.h"
21template <
typename ForwardIterator,
typename UnaryPredicate>
22ForwardIterator
removeIf(ForwardIterator first, ForwardIterator last, UnaryPredicate&& predicate)
24 auto found =
findIf(first, last, forward<UnaryPredicate>(predicate));
30 if (not predicate(*it))
ForwardIterator removeIf(ForwardIterator first, ForwardIterator last, UnaryPredicate &&predicate)
Removes all items in the given range, satisfying the given predicate.
Definition: AlgorithmRemove.h:22
constexpr ForwardIterator findIf(ForwardIterator first, ForwardIterator last, UnaryPredicate &&predicate)
Find item satisfying the given predicate.
Definition: AlgorithmFind.h:23
constexpr T && move(T &value)
Converts an lvalue to an rvalue reference.
Definition: Compiler.h:269