A deleter that calls destroy(), so that std::unique_ptr can own an object created by make(). Its pointer is ptr, so the unique_ptr itself is 4 bytes.
using owner = std::unique_ptr<node, cptr::deleter<node>>;
owner n(cptr::make<node>());
| Name | Description |
|---|---|
pointer | The pointer type std::unique_ptr stores. |
| Name | Description |
|---|---|
deleter [constructor] | Constructors |
operator() | destroy(p). |