Skip to content

Commit 7b9a549

Browse files
committed
Merge pull request #360 from redboltz/replace_0_with_nullptr_on_shared_ptr
[util.smartptr.shared.const] [util.smartptr.shared.obs] Replace literal 0 with nullptr.
2 parents 28b5d35 + 12a17b0 commit 7b9a549

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/utilities.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5576,7 +5576,7 @@
55765576
\begin{itemdescr}
55775577
\pnum\effects Constructs an \textit{empty} \tcode{shared_ptr} object.
55785578

5579-
\pnum\postconditions \tcode{use_count() == 0 \&\& get() == 0}.
5579+
\pnum\postconditions \tcode{use_count() == 0 \&\& get() == nullptr}.
55805580
\end{itemdescr}
55815581

55825582
\indexlibrary{\idxcode{shared_ptr}!constructor}%
@@ -5691,7 +5691,7 @@
56915691

56925692
\pnum
56935693
\postconditions \tcode{*this} shall contain the old value of
5694-
\tcode{r}. \tcode{r} shall be \textit{empty}. \tcode{r.get() == 0.}
5694+
\tcode{r}. \tcode{r} shall be \textit{empty}. \tcode{r.get() == nullptr.}
56955695
\end{itemdescr}
56965696

56975697
\indexlibrary{\idxcode{shared_ptr}!constructor}%
@@ -5729,7 +5729,7 @@
57295729
\pnum\effects Constructs a \tcode{shared_ptr} object that stores and \textit{owns}
57305730
\tcode{r.release()}.
57315731

5732-
\pnum\postconditions \tcode{use_count() == 1} \tcode{\&\&} \tcode{r.get() == 0}.
5732+
\pnum\postconditions \tcode{use_count() == 1} \tcode{\&\&} \tcode{r.get() == nullptr}.
57335733

57345734
\pnum\throws \tcode{bad_alloc}, or an \impldef{exception type when \tcode{shared_ptr}
57355735
constructor fails} exception when a
@@ -5967,7 +5967,7 @@
59675967

59685968
\pnum \enternote \tcode{unique()} may be faster than \tcode{use_count()}. If you are
59695969
using \tcode{unique()} to implement copy on write, do not rely on a
5970-
specific value when \tcode{get() == 0}. \exitnote
5970+
specific value when \tcode{get() == nullptr}. \exitnote
59715971
\end{itemdescr}
59725972

59735973
\indexlibrary{\idxcode{operator bool}!\idxcode{shared_ptr}}%

0 commit comments

Comments
 (0)