SDSL 3.0.3
Succinct Data Structure Library
Loading...
Searching...
No Matches
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 (track_allocator< U > const &)
 
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 50 of file memory_tracking.hpp.

Member Typedef Documentation

◆ value_type

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

Definition at line 52 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 ( track_allocator< U > const & )
inline

Definition at line 56 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 59 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 72 of file memory_tracking.hpp.


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