QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
quickcpplib::_xxx::pmr::memory_resource Class Referenceabstract

memory_resource emulation More...

#include "memory_resource.hpp"

Inheritance diagram for quickcpplib::_xxx::pmr::memory_resource:
quickcpplib::_xxx::pmr::monotonic_buffer_resource

Public Member Functions

 memory_resource ()=default
 
 memory_resource (const memory_resource &)=default
 
memory_resourceoperator= (const memory_resource &)=default
 
virtual ~memory_resource ()
 
QUICKCPPLIB_NODISCARD void * allocate (size_t bytes, size_t alignment=alignof(std::max_align_t))
 
void deallocate (void *p, size_t bytes, size_t alignment=alignof(std::max_align_t))
 

Friends

bool operator== (const memory_resource &a, const memory_resource &b) noexcept
 
bool operator!= (const memory_resource &a, const memory_resource &b) noexcept
 

Detailed Description

memory_resource emulation

Constructor & Destructor Documentation

◆ memory_resource() [1/2]

quickcpplib::_xxx::pmr::memory_resource::memory_resource ( )
default

◆ memory_resource() [2/2]

quickcpplib::_xxx::pmr::memory_resource::memory_resource ( const memory_resource )
default

◆ ~memory_resource()

virtual quickcpplib::_xxx::pmr::memory_resource::~memory_resource ( )
inlinevirtual
74{}

Member Function Documentation

◆ operator=()

memory_resource & quickcpplib::_xxx::pmr::memory_resource::operator= ( const memory_resource )
default

◆ allocate()

QUICKCPPLIB_NODISCARD void * quickcpplib::_xxx::pmr::memory_resource::allocate ( size_t  bytes,
size_t  alignment = alignof(std::max_align_t) 
)
inline
77 {
78 return do_allocate(bytes, alignment);
79 }

◆ deallocate()

void quickcpplib::_xxx::pmr::memory_resource::deallocate ( void *  p,
size_t  bytes,
size_t  alignment = alignof(std::max_align_t) 
)
inline
81 {
82 return do_deallocate(p, bytes, alignment);
83 }

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const memory_resource a,
const memory_resource b 
)
friend
86 {
87 return a.do_is_equal(b);
88 }

◆ operator!=

bool operator!= ( const memory_resource a,
const memory_resource b 
)
friend
90 {
91 return !a.do_is_equal(b);
92 }

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