Skip to content

Commit 796c871

Browse files
jensmaurerzygoloid
authored andcommitted
[bit] Avoid std::numeric_limits<...>
Referring to numeric_limits (without std:: prefix) is sufficient.
1 parent 33c130f commit 796c871

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/numerics.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@
14711471
\rSec2[bit.rotate]{Rotating}
14721472

14731473
In the following descriptions,
1474-
let \tcode{N} denote \tcode{std::numeric_limits<T>::digits}.
1474+
let \tcode{N} denote \tcode{numeric_limits<T>::digits}.
14751475

14761476
\begin{itemdecl}
14771477
template<class T>
@@ -1518,7 +1518,7 @@
15181518
\rSec2[bit.count]{Counting}
15191519

15201520
In the following descriptions,
1521-
let \tcode{N} denote \tcode{std::numeric_limits<T>::digits}.
1521+
let \tcode{N} denote \tcode{numeric_limits<T>::digits}.
15221522

15231523
\begin{itemdecl}
15241524
template<class T>
@@ -1556,7 +1556,7 @@
15561556
The number of consecutive \tcode{1} bits in the value of \tcode{x},
15571557
starting from the most significant bit.
15581558
\begin{note}
1559-
Returns \tcode{N} if \tcode{x == std::numeric_limits<T>::max()}.
1559+
Returns \tcode{N} if \tcode{x == numeric_limits<T>::max()}.
15601560
\end{note}
15611561
\end{itemdescr}
15621562

@@ -1596,7 +1596,7 @@
15961596
The number of consecutive \tcode{1} bits in the value of \tcode{x},
15971597
starting from the least significant bit.
15981598
\begin{note}
1599-
Returns \tcode{N} if \tcode{x == std::numeric_limits<T>::max()}.
1599+
Returns \tcode{N} if \tcode{x == numeric_limits<T>::max()}.
16001600
\end{note}
16011601
\end{itemdescr}
16021602

0 commit comments

Comments
 (0)