diff --git a/source/iterators.tex b/source/iterators.tex index ba88203f18..cf6b9b8374 100644 --- a/source/iterators.tex +++ b/source/iterators.tex @@ -5253,13 +5253,12 @@ \begin{example} A \tcode{move_if} algorithm is easily implemented with \tcode{copy_if} using \tcode{move_iterator} and \tcode{move_sentinel}: - \begin{codeblock} template<@\libconcept{input_iterator}@ I, @\libconcept{sentinel_for}@ S, @\libconcept{weakly_incrementable}@ O, @\libconcept{indirect_unary_predicate}@ Pred> requires @\libconcept{indirectly_movable}@ void move_if(I first, S last, O out, Pred pred) { - std::ranges::copy_if(move_iterator{first}, move_sentinel{last}, out, pred); + ranges::copy_if(move_iterator{first}, move_sentinel{last}, out, pred); } \end{codeblock} \end{example}