20 using difference_type = ptrdiff_t;
32 constexpr secure_memory_allocator(secure_memory_allocator<U>
const &other)
noexcept
36 [[nodiscard]] value_type *allocate(size_type n)
const noexcept
40 return reinterpret_cast<value_type *
>(p);
43 void deallocate(value_type *p, size_type n)
const noexcept
45 secure_clear(p, n *
sizeof (value_type));
48 std::allocator_traits<
decltype(allocator)>::deallocate(allocator,
reinterpret_cast<std::byte *
>(p), n *
sizeof (value_type));