Slick OrderBook 1.1.0
High-Performance C++23 OrderBook Library
Loading...
Searching...
No Matches
slick::orderbook::AllocatorLike Concept Reference

Concept for allocator-like types. More...

#include <concepts.hpp>

Concept definition

template<typename A>
concept slick::orderbook::AllocatorLike = requires(A alloc, std::size_t n) {
typename A::value_type;
{ alloc.allocate(n) } -> std::same_as<typename A::value_type*>;
{ alloc.deallocate(std::declval<typename A::value_type*>(), n) } -> std::same_as<void>;
}
Concept for allocator-like types.
Definition concepts.hpp:54

Detailed Description

Concept for allocator-like types.

Definition at line 54 of file concepts.hpp.