std: stl::destroy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user