Async++ unknown
Async (co_await/co_return) code for C++
Loading...
Searching...
No Matches
asyncpp::ByteAllocator Concept Reference

Check if a type is a valid allocator providing std::byte allocations. More...

#include <asyncpp/detail/concepts.h>

Concept definition

template<class Allocator>
concept asyncpp::ByteAllocator = requires(Allocator&& alloc) {
{ std::allocator_traits<Allocator>::allocate(alloc, 0) } -> std::convertible_to<std::byte*>;
{ std::allocator_traits<Allocator>::deallocate(alloc, std::declval<std::byte*>(), 0) };
}
Check if a type is a valid allocator providing std::byte allocations.
Definition concepts.h:67

Detailed Description

Check if a type is a valid allocator providing std::byte allocations.