20 using size_type = size_t;
21 using difference_type = ptrdiff_t;
33 constexpr locked_memory_allocator(locked_memory_allocator<U>
const &other)
noexcept {}
35 [[nodiscard]] value_type *allocate(size_type n)
const noexcept
37 auto *p = locked_memory_allocator_allocate(n *
sizeof(value_type));
38 return reinterpret_cast<value_type *
>(p);
41 void deallocate(value_type *p, size_type n)
const noexcept
43 locked_memory_allocator_deallocate(
reinterpret_cast<std::byte *
>(p), n *
sizeof(value_type));