Mention that null_deleter can be useful when the object doesn't need to be deallocated.

This commit is contained in:
Andrey Semashev
2025-12-08 14:18:15 +03:00
parent 239953da9f
commit 99d550a5e4

View File

@@ -18,7 +18,7 @@
The header `<boost/core/null_deleter.hpp>` defines the `boost::null_deleter` function object,
which can be used as a deleter with smart pointers such as `unique_ptr` or `shared_ptr`. The
deleter doesn't do anything with the pointer provided upon deallocation, which makes it useful
when the pointed object is deallocated elsewhere.
when the pointed object doesn't need to be deallocated or is deallocated elsewhere.
[section Example]
``