28#ifndef CMSIS_PLUS_MEMORY_NULL_H_
29#define CMSIS_PLUS_MEMORY_NULL_H_
33#if defined(__cplusplus)
41#pragma GCC diagnostic push
44#pragma clang diagnostic ignored "-Wc++98-compat"
54#pragma GCC diagnostic push
56#pragma clang diagnostic ignored "-Wweak-vtables"
125 do_allocate (std::size_t bytes, std::size_t alignment)
override;
136 do_deallocate (
void* addr, std::size_t bytes, std::size_t alignment)
144#pragma GCC diagnostic pop
159#pragma GCC diagnostic push
161#pragma GCC diagnostic ignored "-Wunused-parameter"
171 std::size_t alignment)
noexcept
176#pragma GCC diagnostic pop
182#pragma GCC diagnostic pop
An internal memory manager that throws a bad_alloc() exception when trying to allocate.
null_memory_resource()=default
Default constructor. Construct a memory manager object instance.
virtual void * do_allocate(std::size_t bytes, std::size_t alignment) override
Implementation of the memory allocator.
virtual void do_deallocate(void *addr, std::size_t bytes, std::size_t alignment) noexcept override
Implementation of the memory deallocator.
~null_memory_resource() override=default
Destruct the memory manager object instance.
Memory resource manager (abstract class).
void __throw_bad_alloc(void)
Single file µOS++ RTOS definitions.