Skip to content

Commit f3254b3

Browse files
committed
[numerics.sat.cast] Rename template parameters to "R" and "T".
This makes the names consistent with std::in_range in <utility>.
1 parent fa6db68 commit f3254b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/algorithms.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10867,19 +10867,19 @@
1086710867

1086810868
\indexlibraryglobal{saturate_cast}%
1086910869
\begin{itemdecl}
10870-
template<class T, class U>
10871-
constexpr T saturate_cast(U x) noexcept;
10870+
template<class R, class T>
10871+
constexpr R saturate_cast(T x) noexcept;
1087210872
\end{itemdecl}
1087310873

1087410874
\begin{itemdescr}
1087510875
\pnum
1087610876
\constraints
10877-
\tcode{T} and \tcode{U} are signed or unsigned integer types\iref{basic.fundamental}.
10877+
\tcode{R} and \tcode{T} are signed or unsigned integer types\iref{basic.fundamental}.
1087810878

1087910879
\pnum
1088010880
\returns
10881-
If \tcode{x} is representable as a value of type \tcode{T}, \tcode{x};
10882-
otherwise, either the largest or smallest representable value of type \tcode{T},
10881+
If \tcode{x} is representable as a value of type \tcode{R}, \tcode{x};
10882+
otherwise, either the largest or smallest representable value of type \tcode{R},
1088310883
whichever is closer to the value of \tcode{x}.
1088410884
\end{itemdescr}
1088510885

0 commit comments

Comments
 (0)