Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Toggle main menu visibility
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
11
namespace
Grindstone::Memory::Allocators
{
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
}
Grindstone::Memory::Allocators::is_allocator
A dynamic allocator represented by a linked list.
Definition
AllocatorConcept.hpp:20
Grindstone::Memory::Allocators
Definition
AllocatorConcept.hpp:11
sources
code
Common
Memory
Allocators
AllocatorConcept.hpp
Generated by
1.17.0