25#include <seastar/core/memory.hh>
26#include <seastar/core/temporary_buffer.hh>
27#include <seastar/util/std-compat.hh>
28#include <seastar/util/modules.hh>
38template <
typename CharType>
40 if (allocator == memory::malloc_allocator) {
43 CharType *buffer = allocator->allocate(size);
45 make_deleter(
deleter(), [allocator, buffer, size] ()
mutable { allocator->deallocate(buffer, size); }));
Definition: deleter.hh:52
Definition: temporary_buffer.hh:67
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
temporary_buffer< CharType > make_temporary_buffer(std::pmr::polymorphic_allocator< CharType > *allocator, std::size_t size)
Definition: polymorphic_temporary_buffer.hh:39