26 #include "../result.h"
35 [[nodiscard]]
virtual void*
allocate( std::size_t
bytes, std::size_t alignment ) = 0;
36 [[nodiscard]]
virtual result
39 [[nodiscard]]
virtual bool is_full() const noexcept = 0;
Definition: memory_resource.h:33
virtual void * allocate(std::size_t bytes, std::size_t alignment)=0
virtual result deallocate(void *ptr, std::size_t bytes, std::size_t alignment)=0
virtual bool is_full() const noexcept=0
virtual bool is_equal(memory_resource const &other) const noexcept=0
MIT License.
Definition: aliases.h:36
constexpr std::array< std::byte, N > bytes(Args const &... args)
Conveft the provided arguments into array of std::byte.
Definition: algorithm.h:524
result represents an result of some operation, as an alternative to returning just bool with true/fal...
Definition: result.h:42