mixedbag 0.0.1
Loading...
Searching...
No Matches
ARo::bookkeeping_memory_resource Class Referencefinal

#include <bookkeeping_memory_resource.hxx>

Inheritance diagram for ARo::bookkeeping_memory_resource:
Collaboration diagram for ARo::bookkeeping_memory_resource:

Public Member Functions

 bookkeeping_memory_resource (std::pmr::memory_resource *upstream)
 
std::size_t get_num_live_allocations () const noexcept
 
std::size_t get_num_deallocations () const noexcept
 
std::size_t get_num_live_allocated_bytes () const noexcept
 
std::size_t is_unused () const noexcept
 
std::size_t has_no_leak () const noexcept
 
void print_live_allocations (std::ostream &outputStream) const
 

Detailed Description

A memory resource meant for tests, that can be queried for stats, checks deallocations that they match a live allocation, and asserts on leaks.


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