Skip to content

Commit 99d550a

Browse files
committed
Mention that null_deleter can be useful when the object doesn't need to be deallocated.
1 parent 239953d commit 99d550a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/null_deleter.qbk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
The header `<boost/core/null_deleter.hpp>` defines the `boost::null_deleter` function object,
1919
which can be used as a deleter with smart pointers such as `unique_ptr` or `shared_ptr`. The
2020
deleter doesn't do anything with the pointer provided upon deallocation, which makes it useful
21-
when the pointed object is deallocated elsewhere.
21+
when the pointed object doesn't need to be deallocated or is deallocated elsewhere.
2222

2323
[section Example]
2424
``

0 commit comments

Comments
 (0)