3#ifndef TETL_ALGORITHM_REPLACE_HPP
4#define TETL_ALGORITHM_REPLACE_HPP
14template <
typename ForwardIt,
typename T>
15constexpr auto replace(ForwardIt first, ForwardIt last, T
const& oldValue, T
const& newValue) ->
void
17 auto predicate = [&oldValue](
auto const& item) {
return item == oldValue; };
Definition predicate.hpp:14
constexpr auto replace_if(ForwardIt first, ForwardIt last, Predicate p, T const &newValue) -> void
Replaces all elements satisfying specific criteria with new_value in the range [first,...
Definition replace_if.hpp:13
constexpr auto replace(ForwardIt first, ForwardIt last, T const &oldValue, T const &newValue) -> void
Replaces all elements satisfying specific criteria with new_value in the range [first,...
Definition replace.hpp:15
Definition adjacent_find.hpp:8