![]() |
WPILibC++ 2025.3.2
|
A stateless RawAllocator that allocates memory using the virtual memory allocation functions. More...
#include <wpi/memory/virtual_memory.hpp>
Public Types | |
| using | is_stateful = std::false_type |
Public Member Functions | |
| virtual_memory_allocator () noexcept=default | |
| virtual_memory_allocator (virtual_memory_allocator &&) noexcept | |
| ~virtual_memory_allocator () noexcept=default | |
| virtual_memory_allocator & | operator= (virtual_memory_allocator &&) noexcept |
| void * | allocate_node (std::size_t size, std::size_t alignment) |
| void | deallocate_node (void *node, std::size_t size, std::size_t alignment) noexcept |
| std::size_t | max_node_size () const noexcept |
| std::size_t | max_alignment () const noexcept |
A stateless RawAllocator that allocates memory using the virtual memory allocation functions.
It does not prereserve any memory and will always reserve and commit combined.
| using wpi::memory::virtual_memory_allocator::is_stateful = std::false_type |
|
defaultnoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
| void * wpi::memory::virtual_memory_allocator::allocate_node | ( | std::size_t | size, |
| std::size_t | alignment ) |
size continuous bytes, i.e. size will be rounded up to the next multiple. If debug fences are activated, one additional page before and after the memory will be allocated. nullptr. It will always be aligned on a fence boundary, regardless of the alignment parameter.
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |