IceShard
1
A personal game engine project, with development focused on 2D/2.5D games.
Toggle main menu visibility
Loading...
Searching...
No Matches
memsys
public
ice
mem_allocator_host.hxx
Go to the documentation of this file.
1
3
4
#pragma once
5
#include <
ice/mem_allocator.hxx
>
6
7
namespace
ice
8
{
9
10
class
HostAllocator
final :
public
ice::Allocator
11
{
12
public
:
13
HostAllocator
(std::source_location = std::source_location::current()) noexcept;
14
15
protected:
16
auto
do_allocate
(
ice
::
AllocRequest
request) noexcept ->
ice
::
AllocResult
override;
17
void
do_deallocate
(
void
* pointer) noexcept override;
18
};
19
20
}
// namespace ice
ice::HostAllocator::HostAllocator
HostAllocator(std::source_location=std::source_location::current()) noexcept
ice::HostAllocator::do_deallocate
void do_deallocate(void *pointer) noexcept override
ice::HostAllocator::do_allocate
auto do_allocate(ice::AllocRequest request) noexcept -> ice::AllocResult override
mem_allocator.hxx
ice
SPDX-License-Identifier: MIT.
Definition
array.hxx:12
ice::Allocator
ice::AllocatorBase< ice::build::is_debug||ice::build::is_develop > Allocator
Definition
mem_types.hxx:25
ice::AllocRequest
Definition
mem.hxx:16
ice::AllocResult
Definition
mem.hxx:44
Generated by
1.18.0