Skip to content

[alg.min.max] Replace small/large terminology with less/greater #6752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8731,7 +8731,7 @@

\pnum
\returns
The smaller value.
The lesser value.
Returns the first argument when the arguments are equivalent.

\pnum
Expand Down Expand Up @@ -8773,9 +8773,9 @@

\pnum
\returns
The smallest value in the input range.
The least value in the input range.
Returns a copy of the leftmost element
when several elements are equivalent to the smallest.
when several elements are equivalent to the least.

\pnum
\complexity
Expand Down Expand Up @@ -8809,7 +8809,7 @@

\pnum
\returns
The larger value.
The greater value.
Returns the first argument when the arguments are equivalent.

\pnum
Expand Down Expand Up @@ -8851,9 +8851,9 @@

\pnum
\returns
The largest value in the input range.
The greatest value in the input range.
Returns a copy of the leftmost element
when several elements are equivalent to the largest.
when several elements are equivalent to the greatest.

\pnum
\complexity
Expand Down Expand Up @@ -8889,7 +8889,7 @@

\pnum
\returns
\tcode{\{b, a\}} if \tcode{b} is smaller than \tcode{a}, and
\tcode{\{b, a\}} if \tcode{b} is lesser than \tcode{a}, and
\tcode{\{a, b\}} otherwise.

\pnum
Expand Down Expand Up @@ -8934,8 +8934,8 @@
\returns
Let \tcode{X} be the return type.
Returns \tcode{X\{x, y\}},
where \tcode{x} is a copy of the leftmost element with the smallest value and
\tcode{y} a copy of the rightmost element with the largest value
where \tcode{x} is a copy of the leftmost element with the least value and
\tcode{y} a copy of the rightmost element with the greatest value
in the input range.

\pnum
Expand Down Expand Up @@ -9080,12 +9080,12 @@
\tcode{\{first, first\}} if \range{first}{last} is empty, otherwise
\tcode{\{m, M\}}, where \tcode{m} is
the first iterator in \range{first}{last} such that no iterator in the range refers
to a smaller element, and where \tcode{M} is the last iterator
to a lesser element, and where \tcode{M} is the last iterator
\begin{footnote}
This behavior
intentionally differs from \tcode{max_element}.
\end{footnote}
in \range{first}{last} such that no iterator in the range refers to a larger element.
in \range{first}{last} such that no iterator in the range refers to a greater element.

\pnum
\complexity
Expand Down