riccaticpp
Loading...
Searching...
No Matches
riccati::dummy_allocator Struct Reference

#include <memory.hpp>

Public Member Functions

template<typename T >
T * allocate (std::size_t n)
 
constexpr void recover_memory () noexcept
 
template<typename T >
constexpr void deallocate (T *p, std::size_t n) noexcept
 
constexpr bool operator== (const dummy_allocator &) const noexcept
 
constexpr bool operator!= (const dummy_allocator &) const noexcept
 
 ~dummy_allocator ()
 

Public Attributes

std::vector< void * > ptrs_
 

Detailed Description

Definition at line 371 of file memory.hpp.

Constructor & Destructor Documentation

◆ ~dummy_allocator()

riccati::dummy_allocator::~dummy_allocator ( )
inline

Definition at line 388 of file memory.hpp.

References ptrs_.

Member Function Documentation

◆ allocate()

template<typename T >
T * riccati::dummy_allocator::allocate ( std::size_t n)
inline

Definition at line 374 of file memory.hpp.

References ptrs_.

◆ deallocate()

template<typename T >
void riccati::dummy_allocator::deallocate ( T * p,
std::size_t n )
inlineconstexprnoexcept

Definition at line 381 of file memory.hpp.

◆ operator!=()

bool riccati::dummy_allocator::operator!= ( const dummy_allocator & ) const
inlineconstexprnoexcept

Definition at line 385 of file memory.hpp.

◆ operator==()

bool riccati::dummy_allocator::operator== ( const dummy_allocator & ) const
inlineconstexprnoexcept

Definition at line 382 of file memory.hpp.

◆ recover_memory()

void riccati::dummy_allocator::recover_memory ( )
inlineconstexprnoexcept

Definition at line 379 of file memory.hpp.

Member Data Documentation

◆ ptrs_

std::vector<void*> riccati::dummy_allocator::ptrs_

Definition at line 372 of file memory.hpp.


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