WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi_memory_pmr::memory_resource Class Referenceabstract

#include <wpi/memory/memory_resource_adapter.hpp>

Public Member Functions

virtual ~memory_resource () noexcept
 
void * allocate (std::size_t bytes, std::size_t alignment=max_alignment)
 
void deallocate (void *p, std::size_t bytes, std::size_t alignment=max_alignment)
 
bool is_equal (const memory_resource &other) const noexcept
 

Protected Member Functions

virtual void * do_allocate (std::size_t bytes, std::size_t alignment)=0
 
virtual void do_deallocate (void *p, std::size_t bytes, std::size_t alignment)=0
 
virtual bool do_is_equal (const memory_resource &other) const noexcept=0
 

Constructor & Destructor Documentation

◆ ~memory_resource()

virtual wpi_memory_pmr::memory_resource::~memory_resource ( )
inlinevirtualnoexcept

Member Function Documentation

◆ allocate()

void * wpi_memory_pmr::memory_resource::allocate ( std::size_t bytes,
std::size_t alignment = max_alignment )
inline

◆ deallocate()

void wpi_memory_pmr::memory_resource::deallocate ( void * p,
std::size_t bytes,
std::size_t alignment = max_alignment )
inline

◆ do_allocate()

virtual void * wpi_memory_pmr::memory_resource::do_allocate ( std::size_t bytes,
std::size_t alignment )
protectedpure virtual

◆ do_deallocate()

virtual void wpi_memory_pmr::memory_resource::do_deallocate ( void * p,
std::size_t bytes,
std::size_t alignment )
protectedpure virtual

◆ do_is_equal()

virtual bool wpi_memory_pmr::memory_resource::do_is_equal ( const memory_resource & other) const
protectedpure virtualnoexcept

◆ is_equal()

bool wpi_memory_pmr::memory_resource::is_equal ( const memory_resource & other) const
inlinenoexcept

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