The exception class thrown when the alignment exceeds the supported maximum, i.e.
More...
#include <wpi/memory/error.hpp>
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.
◆ 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.
◆ 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: