WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::memory::out_of_fixed_memory Class Reference

A special case of out_of_memory errors thrown when a low-level allocator with a fixed size runs out of memory. More...

#include <wpi/memory/error.hpp>

Inheritance diagram for wpi::memory::out_of_fixed_memory:
wpi::memory::out_of_memory

Public Member Functions

 out_of_fixed_memory (const allocator_info &info, std::size_t amount)
 
const char * what () const noexcept override
 
- Public Member Functions inherited from wpi::memory::out_of_memory
 out_of_memory (const allocator_info &info, std::size_t amount)
 
const char * what () const noexcept override
 
const allocator_infoallocator () const noexcept
 
std::size_t failed_allocation_size () const noexcept
 

Additional Inherited Members

- Public Types inherited from wpi::memory::out_of_memory
using handler = void (*)(const allocator_info& info, std::size_t amount)
 The type of the handler called in the constructor of out_of_memory.
 
- Static Public Member Functions inherited from wpi::memory::out_of_memory
static handler set_handler (handler h)
 
static handler get_handler ()
 

Detailed Description

A special case of out_of_memory errors thrown when a low-level allocator with a fixed size runs out of memory.

For example, thrown by fixed_block_allocator or static_allocator.
It is derived from out_of_memory but does not provide its own handler.

Constructor & Destructor Documentation

◆ out_of_fixed_memory()

wpi::memory::out_of_fixed_memory::out_of_fixed_memory ( const allocator_info & info,
std::size_t amount )
inline
Effects:
Just forwards to out_of_memory.

Member Function Documentation

◆ what()

const char * wpi::memory::out_of_fixed_memory::what ( ) const
overridenoexcept
Returns:
A static NTBS that describes the error. It does not contain any specific information since there is no memory for formatting.

The documentation for this class was generated from the following file: