SDSL 3.0.1
Succinct Data Structure Library
sdsl::track_allocator< T > Struct Template Reference

#include <memory_tracking.hpp>

Public Types

using value_type = T
 

Public Member Functions

 track_allocator ()=default
 
template<class U >
 track_allocator (const track_allocator< U > &)
 
T * allocate (std::size_t n)
 
void deallocate (T *ptr, std::size_t n)
 

Detailed Description

template<typename T>
struct sdsl::track_allocator< T >

Definition at line 54 of file memory_tracking.hpp.

Member Typedef Documentation

◆ value_type

template<typename T >
using sdsl::track_allocator< T >::value_type = T

Definition at line 56 of file memory_tracking.hpp.

Constructor & Destructor Documentation

◆ track_allocator() [1/2]

template<typename T >
sdsl::track_allocator< T >::track_allocator ( )
default

◆ track_allocator() [2/2]

template<typename T >
template<class U >
sdsl::track_allocator< T >::track_allocator ( const track_allocator< U > &  )
inline

Definition at line 60 of file memory_tracking.hpp.

Member Function Documentation

◆ allocate()

template<typename T >
T * sdsl::track_allocator< T >::allocate ( std::size_t  n)
inline

Definition at line 63 of file memory_tracking.hpp.

◆ deallocate()

template<typename T >
void sdsl::track_allocator< T >::deallocate ( T *  ptr,
std::size_t  n 
)
inline

Definition at line 76 of file memory_tracking.hpp.


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