mirror of
https://github.com/boostorg/core.git
synced 2026-03-06 22:14:03 +01:00
Mention that null_deleter can be useful when the object doesn't need to be deallocated.
This commit is contained in:
@@ -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]
|
||||
``
|
||||
|
||||
Reference in New Issue
Block a user