File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1654
1654
\enterexample
1655
1655
\begin {codeblock }
1656
1656
T* p1 = new T; // throws \tcode {bad_alloc} if it fails
1657
- T* p2 = new(nothrow) T; // returns \tcode {0 } if it fails
1657
+ T* p2 = new(nothrow) T; // returns \tcode {nullptr } if it fails
1658
1658
\end {codeblock }
1659
1659
\exitexample
1660
1660
\end {itemdescr }
Original file line number Diff line number Diff line change 6273
6273
6274
6274
\begin {itemdescr }
6275
6275
\pnum\returns If \tcode {p} \textit {owns } a deleter \tcode {d} of type cv-unqualified
6276
- \tcode {D}, returns \tcode {\& d}; otherwise returns \tcode {0 }. The returned
6276
+ \tcode {D}, returns \tcode {\& d}; otherwise returns \tcode {nullptr }. The returned
6277
6277
pointer remains valid as long as there exists a \tcode {shared_ptr} instance
6278
6278
that owns \tcode {d}. \enternote It is unspecified whether the pointer
6279
6279
remains valid longer than that. This can happen if the implementation doesn't destroy
You can’t perform that action at this time.
0 commit comments