WPILibC++ 2025.3.2
Loading...
Searching...
No Matches
wpi::memory::composable_allocator_traits< iteration_allocator< N, BlockAllocator > > Class Template Reference

Specialization of the composable_allocator_traits for iteration_allocator classes. More...

#include <wpi/memory/iteration_allocator.hpp>

Public Types

using allocator_type = iteration_allocator<N, BlockAllocator>
 

Static Public Member Functions

static void * try_allocate_node (allocator_type &state, std::size_t size, std::size_t alignment) noexcept
 
static void * try_allocate_array (allocator_type &state, std::size_t count, std::size_t size, std::size_t alignment) noexcept
 
static bool try_deallocate_node (allocator_type &state, void *ptr, std::size_t, std::size_t) noexcept
 
static bool try_deallocate_array (allocator_type &state, void *ptr, std::size_t count, std::size_t size, std::size_t alignment) noexcept
 

Detailed Description

template<std::size_t N, class BlockAllocator>
class wpi::memory::composable_allocator_traits< iteration_allocator< N, BlockAllocator > >

Specialization of the composable_allocator_traits for iteration_allocator classes.

Member Typedef Documentation

◆ allocator_type

template<std::size_t N, class BlockAllocator >
using wpi::memory::composable_allocator_traits< iteration_allocator< N, BlockAllocator > >::allocator_type = iteration_allocator<N, BlockAllocator>

Member Function Documentation

◆ try_allocate_array()

template<std::size_t N, class BlockAllocator >
static void * wpi::memory::composable_allocator_traits< iteration_allocator< N, BlockAllocator > >::try_allocate_array ( allocator_type & state,
std::size_t count,
std::size_t size,
std::size_t alignment )
inlinestaticnoexcept
Returns:
The result of memory_stack::try_allocate().

◆ try_allocate_node()

template<std::size_t N, class BlockAllocator >
static void * wpi::memory::composable_allocator_traits< iteration_allocator< N, BlockAllocator > >::try_allocate_node ( allocator_type & state,
std::size_t size,
std::size_t alignment )
inlinestaticnoexcept
Returns:
The result of memory_stack::try_allocate().

◆ try_deallocate_array()

template<std::size_t N, class BlockAllocator >
static bool wpi::memory::composable_allocator_traits< iteration_allocator< N, BlockAllocator > >::try_deallocate_array ( allocator_type & state,
void * ptr,
std::size_t count,
std::size_t size,
std::size_t alignment )
inlinestaticnoexcept

◆ try_deallocate_node()

template<std::size_t N, class BlockAllocator >
static bool wpi::memory::composable_allocator_traits< iteration_allocator< N, BlockAllocator > >::try_deallocate_node ( allocator_type & state,
void * ptr,
std::size_t ,
std::size_t  )
inlinestaticnoexcept
Effects:
Does nothing.
Returns:
Whether the memory will be deallocated by memory_stack::unwind().

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