7#include "../macros.hpp"
11hi_export_module(hikogui.memory.locked_memory_allocator : intf);
13hi_export
namespace hi::inline
v1 {
15[[nodiscard]] std::byte *locked_memory_allocator_allocate(
std::size_t n)
noexcept;
17void locked_memory_allocator_deallocate(std::byte *p,
std::size_t n)
noexcept;
24 using difference_type = ptrdiff_t;
36 constexpr locked_memory_allocator(locked_memory_allocator<U>
const &other)
noexcept
40 [[nodiscard]] value_type *allocate(size_type n)
const noexcept
42 auto *p = locked_memory_allocator_allocate(n *
sizeof(value_type));
43 return reinterpret_cast<value_type *
>(p);
46 void deallocate(value_type *p, size_type n)
const noexcept
48 locked_memory_allocator_deallocate(
reinterpret_cast<std::byte *
>(p), n *
sizeof(value_type));
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
Definition locked_memory_allocator_intf.hpp:20
Definition locked_memory_allocator_intf.hpp:27