Skip to content

Commit 3750b23

Browse files
jensmaurertkoeppe
authored andcommitted
[unique.ptr.single.modifiers] Use 'if and only if' when calling deleter. (#1255)
Fixes #248.
1 parent 8e64a08 commit 3750b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/utilities.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8821,7 +8821,7 @@
88218821
well-defined behavior, and shall not throw exceptions.
88228822

88238823
\pnum
8824-
\effects Assigns \tcode{p} to the stored pointer, and then if the old value of the
8824+
\effects Assigns \tcode{p} to the stored pointer, and then if and only if the old value of the
88258825
stored pointer, \tcode{old_p}, was not equal to \tcode{nullptr}, calls
88268826
\tcode{get_deleter()(old_p)}. \begin{note} The order of these operations is significant
88278827
because the call to \tcode{get_deleter()} may destroy \tcode{*this}. \end{note}

0 commit comments

Comments
 (0)