Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
AllocatorConcept.hpp
1#pragma once
2
3#include <string>
4#include <functional>
5#include <stdint.h>
6#include <map>
7#include <utility>
8
9#include "../SmartPointers.hpp"
10
19 template <typename Allocator>
20 concept is_allocator = requires(Allocator a, typename Allocator::value_type* p) {
21 { a.allocate(0) } -> std::same_as<decltype(p)>;
22 { a.deallocate(p, 0) } -> std::same_as<void>;
23 };
24}
A dynamic allocator represented by a linked list.
Definition AllocatorConcept.hpp:20
Definition AllocatorConcept.hpp:11