12#ifndef CMSIS_PLUS_MEMORY_NULL_H_
13#define CMSIS_PLUS_MEMORY_NULL_H_
17#if defined(__cplusplus)
25#pragma GCC diagnostic push
27#pragma clang diagnostic ignored "-Wc++98-compat"
37#pragma GCC diagnostic push
39#pragma clang diagnostic ignored "-Wweak-vtables"
109 do_allocate (std::size_t bytes, std::size_t alignment)
override;
121 std::size_t alignment)
noexcept override;
128#pragma GCC diagnostic pop
143#pragma GCC diagnostic push
144#if defined(__clang__)
145#pragma clang diagnostic ignored "-Wunused-parameter"
146#elif defined(__GNUC__)
148#pragma GCC diagnostic ignored "-Wunused-parameter"
153 std::size_t alignment)
160 std::size_t alignment)
noexcept
164#pragma GCC diagnostic pop
170#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.