A composable RawAllocator that will always fail.
More...
#include <wpi/memory/segregator.hpp>
A composable RawAllocator that will always fail.
This is useful for compositioning or as last resort in binary_segregator.
◆ allocate_node()
void * wpi::memory::null_allocator::allocate_node |
( |
std::size_t | size, |
|
|
std::size_t | ) |
|
inline |
◆ deallocate_node()
void wpi::memory::null_allocator::deallocate_node |
( |
void * | , |
|
|
std::size_t | , |
|
|
std::size_t | ) |
|
inlinenoexcept |
- Requires:
- Must not be called.
◆ try_allocate_node()
void * wpi::memory::null_allocator::try_allocate_node |
( |
std::size_t | , |
|
|
std::size_t | ) |
|
inlinenoexcept |
- Effects:
- Does nothing.
- Returns:
- Always returns
nullptr
.
◆ try_deallocate_node()
bool wpi::memory::null_allocator::try_deallocate_node |
( |
void * | , |
|
|
std::size_t | , |
|
|
std::size_t | ) |
|
inlinenoexcept |
- Effects:
- Does nothing.
- Returns:
- Always returns
false
.
The documentation for this class was generated from the following file: