File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5576
5576
\begin {itemdescr }
5577
5577
\pnum\effects Constructs an \textit {empty } \tcode {shared_ptr} object.
5578
5578
5579
- \pnum\postconditions \tcode {use_count() == 0 \&\& get() == 0 }.
5579
+ \pnum\postconditions \tcode {use_count() == 0 \&\& get() == nullptr }.
5580
5580
\end {itemdescr }
5581
5581
5582
5582
\indexlibrary {\idxcode {shared_ptr}!constructor}%
5691
5691
5692
5692
\pnum
5693
5693
\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 .}
5695
5695
\end {itemdescr }
5696
5696
5697
5697
\indexlibrary {\idxcode {shared_ptr}!constructor}%
5729
5729
\pnum\effects Constructs a \tcode {shared_ptr} object that stores and \textit {owns }
5730
5730
\tcode {r.release()}.
5731
5731
5732
- \pnum\postconditions \tcode {use_count() == 1} \tcode {\&\& } \tcode {r.get() == 0 }.
5732
+ \pnum\postconditions \tcode {use_count() == 1} \tcode {\&\& } \tcode {r.get() == nullptr }.
5733
5733
5734
5734
\pnum\throws \tcode {bad_alloc}, or an \impldef {exception type when \tcode {shared_ptr}
5735
5735
constructor fails} exception when a
5967
5967
5968
5968
\pnum \enternote \tcode {unique()} may be faster than \tcode {use_count()}. If you are
5969
5969
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
5971
5971
\end {itemdescr }
5972
5972
5973
5973
\indexlibrary {\idxcode {operator bool}!\idxcode {shared_ptr}}%
You can’t perform that action at this time.
0 commit comments