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