Open C++ Libraries.org develop
Loading...
Searching...
No Matches
ocl::smart_ptr::tracked_allocator< Type > Class Template Reference

Public Types

using pointer_type = Type *
 
using type = Type
 

Public Member Functions

tracked_allocatoroperator= (const tracked_allocator &)=default
 
 tracked_allocator (const tracked_allocator &)=default
 
template<typename... Args>
void retain (pointer_type &ptr, Args &&... args)
 
void dispose (pointer_type &ptr)
 

Public Attributes

std::atomic< std::size_t > allocated_count_ {0}
 
std::atomic< std::size_t > deallocated_count_ {0}
 

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