std: stl::destroy

This commit is contained in:
skypjack
2026-04-21 14:59:49 +02:00
parent 514521888c
commit 576baa5c57
2 changed files with 2 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ class basic_sparse_set {
void release_sparse_pages() {
for(auto page_allocator{packed.get_allocator()}; auto &&page: sparse) {
if(page != nullptr) {
std::destroy(page, page + traits_type::page_size);
stl::destroy(page, page + traits_type::page_size);
alloc_traits::deallocate(page_allocator, page, traits_type::page_size);
page = nullptr;
}

View File

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