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

The exception class thrown when the alignment exceeds the supported maximum, i.e. More...

#include <wpi/memory/error.hpp>

Inheritance diagram for wpi::memory::bad_alignment:
wpi::memory::bad_allocation_size

Public Member Functions

 bad_alignment (const allocator_info &info, std::size_t passed, std::size_t supported)
 
const char * what () const noexcept override
 
- Public Member Functions inherited from wpi::memory::bad_allocation_size
 bad_allocation_size (const allocator_info &info, std::size_t passed, std::size_t supported)
 
const char * what () const noexcept override
 
const allocator_infoallocator () const noexcept
 
std::size_t passed_value () const noexcept
 
std::size_t supported_value () const noexcept
 

Additional Inherited Members

- Public Types inherited from wpi::memory::bad_allocation_size
using handler
 The type of the handler called in the constructor of bad_allocation_size.
 
- Static Public Member Functions inherited from wpi::memory::bad_allocation_size
static handler set_handler (handler h)
 
static handler get_handler ()
 

Detailed Description

The exception class thrown when the alignment exceeds the supported maximum, i.e.

it is bigger than max_alignment(). It is derived from bad_allocation_size but does not override the handler.

Constructor & Destructor Documentation

◆ bad_alignment()

wpi::memory::bad_alignment::bad_alignment ( const allocator_info & info,
std::size_t passed,
std::size_t supported )
inline
Effects:
Just forwards to bad_allocation_size. passed is count * size, supported the size in bytes.

Member Function Documentation

◆ what()

const char * wpi::memory::bad_alignment::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: