We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3254b3 commit 8f1b3c5Copy full SHA for 8f1b3c5
source/algorithms.tex
@@ -10847,14 +10847,11 @@
10847
\expects
10848
\tcode{y != 0} is \tcode{true}.
10849
10850
-\pnum
10851
-Let \tcode{q} be \tcode{x / y}, with any fractional part discarded.
10852
-
10853
\pnum
10854
\returns
10855
-If \tcode{q} is representable as a value of type \tcode{T}, \tcode{q};
10856
-otherwise, either the largest or smallest representable value of type \tcode{T},
10857
-whichever is closer to the value of \tcode{q}.
+If \tcode{T} is a signed integer type
+and \tcode{x == numeric_limits<T>::min() \&\& y == -1} is \tcode{true},
+\tcode{numeric_limits<T>::max()}, otherwise, \tcode{x / y}.
10858
10859
10860
\remarks
0 commit comments