From e5b734247196dfe0bb56b5ec55b62a9d34a89366 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sun, 22 Feb 2026 19:55:47 +0100 Subject: [PATCH] [alg.remove] Fix a typo The `E` in the code is actually meant to be a function on an iterator `i`; amend both usages to `E(i)`. This was already done everywhere else (for instance in copy_if or unique_copy). --- source/algorithms.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/algorithms.tex b/source/algorithms.tex index d825e2af40..96c8fad1c6 100644 --- a/source/algorithms.tex +++ b/source/algorithms.tex @@ -7604,7 +7604,7 @@ \begin{itemdescr} \pnum -Let $E$ be +Let $E(\tcode{i})$ be \begin{itemize} \item \tcode{bool(*i == value)} for \tcode{remove}; \item \tcode{bool(pred(*i))} for \tcode{remove_if}; @@ -7621,7 +7621,7 @@ \pnum \effects Eliminates all the elements referred to by iterator \tcode{i} -in the range \range{first}{last} for which $E$ holds. +in the range \range{first}{last} for which $E(\tcode{i})$ holds. \pnum \returns