WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::memory::composable_allocator_traits< Allocator > Class Template Reference

The default specialization of the composable_allocator_traits for a ComposableAllocator. More...

#include <wpi/memory/allocator_traits.hpp>

Public Types

using allocator_type = typename allocator_traits<Allocator>::allocator_type
 

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 *node, std::size_t size, std::size_t alignment) noexcept
 
static bool try_deallocate_array (allocator_type &state, void *array, std::size_t count, std::size_t size, std::size_t alignment) noexcept
 

Detailed Description

template<class Allocator>
class wpi::memory::composable_allocator_traits< Allocator >

The default specialization of the composable_allocator_traits for a ComposableAllocator.

See the last link for the requirements on types that do not specialize this class and the interface documentation. Any specialization must provide the same interface.

Member Typedef Documentation

◆ allocator_type

template<class Allocator >
using wpi::memory::composable_allocator_traits< Allocator >::allocator_type = typename allocator_traits<Allocator>::allocator_type

Member Function Documentation

◆ try_allocate_array()

template<class Allocator >
static void * wpi::memory::composable_allocator_traits< Allocator >::try_allocate_array ( allocator_type & state,
std::size_t count,
std::size_t size,
std::size_t alignment )
inlinestaticnoexcept

◆ try_allocate_node()

template<class Allocator >
static void * wpi::memory::composable_allocator_traits< Allocator >::try_allocate_node ( allocator_type & state,
std::size_t size,
std::size_t alignment )
inlinestaticnoexcept

◆ try_deallocate_array()

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

◆ try_deallocate_node()

template<class Allocator >
static bool wpi::memory::composable_allocator_traits< Allocator >::try_deallocate_node ( allocator_type & state,
void * node,
std::size_t size,
std::size_t alignment )
inlinestaticnoexcept

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