13#ifndef CMSIS_PLUS_MEMORY_NULL_H_
14#define CMSIS_PLUS_MEMORY_NULL_H_
18#if defined(__cplusplus)
26#pragma GCC diagnostic push
28#pragma clang diagnostic ignored "-Wc++98-compat"
38#pragma GCC diagnostic push
40#pragma clang diagnostic ignored "-Wweak-vtables"
109 do_allocate (std::size_t bytes, std::size_t alignment)
override;
120 do_deallocate (
void* addr, std::size_t bytes, std::size_t alignment)
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"
159 std::size_t alignment)
noexcept
163#pragma GCC diagnostic pop
169#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.