AsyncBerkeley
Asynchronous Berkeley sockets. Simple.
Loading...
Searching...
No Matches
io::AllocatorLike Concept Reference

A concept that checks if a type is an allocator. More...

#include <io/detail/concepts.hpp>

Concept definition

template<typename Allocator>
requires(Allocator alloc, typename Allocator::value_type *ptr) {
{ alloc.allocate(0) } -> std::same_as<decltype(ptr)>;
{ alloc.deallocate(ptr, 0) } -> std::same_as<void>;
}
A concept that checks if a type is an allocator.
Definition concepts.hpp:51

Detailed Description

A concept that checks if a type is an allocator.