blob: 8753970080be11c18a3d13663ea3d38becbd59a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "allocation.hpp"
template <class Allocator>
AllocDestructor<Allocator>::AllocDestructor(
Allocator &allocator,
Size alloc_size
) noexcept
: _allocator(allocator), _size(alloc_size)
{
}
template <class Allocator>
void AllocDestructor<Allocator>::operator()(Pointer ptr) noexcept
{
_alloc_traits::deallocate(_allocator, ptr, _size);
}
|