DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::detail::AccountedAllocator< T > Class Template Reference

#include <AccountedAllocator.h>

Public Types

using value_type = T
 
using propagate_on_container_move_assignment = std::true_type
 
using propagate_on_container_swap = std::true_type
 
using is_always_equal = std::false_type
 

Public Member Functions

 AccountedAllocator () noexcept=default
 
 AccountedAllocator (const AllocationAccount *account) noexcept
 
template<typename U >
 AccountedAllocator (const AccountedAllocator< U > &other) noexcept
 
T * allocate (std::size_t count)
 
void deallocate (T *pointer, std::size_t count) noexcept
 
const AllocationAccount * account () const noexcept
 
template<typename U >
bool operator== (const AccountedAllocator< U > &other) const noexcept
 

Detailed Description

template<typename T>
class dspark::detail::AccountedAllocator< T >

Definition at line 38 of file AccountedAllocator.h.

Member Typedef Documentation

◆ is_always_equal

template<typename T >
using dspark::detail::AccountedAllocator< T >::is_always_equal = std::false_type

Definition at line 44 of file AccountedAllocator.h.

◆ propagate_on_container_move_assignment

template<typename T >
using dspark::detail::AccountedAllocator< T >::propagate_on_container_move_assignment = std::true_type

Definition at line 42 of file AccountedAllocator.h.

◆ propagate_on_container_swap

template<typename T >
using dspark::detail::AccountedAllocator< T >::propagate_on_container_swap = std::true_type

Definition at line 43 of file AccountedAllocator.h.

◆ value_type

template<typename T >
using dspark::detail::AccountedAllocator< T >::value_type = T

Definition at line 41 of file AccountedAllocator.h.

Constructor & Destructor Documentation

◆ AccountedAllocator() [1/3]

template<typename T >
dspark::detail::AccountedAllocator< T >::AccountedAllocator ( )
defaultnoexcept

◆ AccountedAllocator() [2/3]

template<typename T >
dspark::detail::AccountedAllocator< T >::AccountedAllocator ( const AllocationAccount *  account)
inlineexplicitnoexcept

Definition at line 47 of file AccountedAllocator.h.

◆ AccountedAllocator() [3/3]

template<typename T >
template<typename U >
dspark::detail::AccountedAllocator< T >::AccountedAllocator ( const AccountedAllocator< U > &  other)
inlinenoexcept

Definition at line 49 of file AccountedAllocator.h.

Member Function Documentation

◆ account()

template<typename T >
const AllocationAccount * dspark::detail::AccountedAllocator< T >::account ( ) const
inlinenoexcept

Definition at line 84 of file AccountedAllocator.h.

◆ allocate()

template<typename T >
T * dspark::detail::AccountedAllocator< T >::allocate ( std::size_t  count)
inline

Definition at line 51 of file AccountedAllocator.h.

◆ deallocate()

template<typename T >
void dspark::detail::AccountedAllocator< T >::deallocate ( T *  pointer,
std::size_t  count 
)
inlinenoexcept

Definition at line 72 of file AccountedAllocator.h.

◆ operator==()

template<typename T >
template<typename U >
bool dspark::detail::AccountedAllocator< T >::operator== ( const AccountedAllocator< U > &  other) const
inlinenoexcept

Definition at line 86 of file AccountedAllocator.h.


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