stl: std::default_delete

This commit is contained in:
skypjack
2026-04-21 14:58:45 +02:00
parent f0a306aa6f
commit 514521888c
2 changed files with 2 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ public:
* @param elem A pointer to a service to manage.
* @param deleter A deleter to use to destroy the service.
*/
template<stl::derived_from<Service> Type, typename Deleter = std::default_delete<Type>>
template<stl::derived_from<Service> Type, typename Deleter = stl::default_delete<Type>>
static void reset(Type *elem, Deleter deleter = {}) {
service = stl::shared_ptr<Service>{elem, stl::move(deleter)};
}

View File

@@ -14,6 +14,7 @@ using std::allocator;
using std::allocator_arg;
using std::allocator_arg_t;
using std::allocator_traits;
using std::default_delete;
using std::enable_shared_from_this;
using std::make_shared;
using std::make_unique;