diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-11-02 20:45:02 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-11-02 20:45:02 -0500 |
commit | e8422002f84dc4313894a5b3136c44a9005081fd (patch) | |
tree | b41633d9f759306fe9c7c01e209780222b47f5df /include/fud_allocator.hpp | |
parent | 6c7fd1db481ff10a16ecab958c6542784fa60b9c (diff) |
Allocator deallocate is void rather than returning FudStatus.
Diffstat (limited to 'include/fud_allocator.hpp')
-rw-r--r-- | include/fud_allocator.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fud_allocator.hpp b/include/fud_allocator.hpp index e4078ac..9b90deb 100644 --- a/include/fud_allocator.hpp +++ b/include/fud_allocator.hpp @@ -32,7 +32,7 @@ class alignas(std::max_align_t) Allocator { virtual Result<std::byte*, FudStatus> allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) = 0; - virtual FudStatus deallocate(std::byte* pointer, size_t bytes) = 0; + virtual void deallocate(std::byte* pointer, size_t bytes) = 0; virtual bool isEqual(const Allocator& rhs) const = 0; }; @@ -48,7 +48,7 @@ class FudAllocator : public Allocator { virtual Result<std::byte*, FudStatus> allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) override; - virtual FudStatus deallocate(std::byte* pointer, size_t bytes) override; + virtual void deallocate(std::byte* pointer, size_t bytes) override; virtual bool isEqual(const Allocator& rhs) const override; }; @@ -61,7 +61,7 @@ class NullAllocator : public Allocator { virtual Result<std::byte*, FudStatus> allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) override; - virtual FudStatus deallocate(std::byte* pointer, size_t bytes) override; + virtual void deallocate(std::byte* pointer, size_t bytes) override; virtual bool isEqual(const Allocator& rhs) const override; }; |