Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members
absl::container_internal::CountingAllocator< T > Class Template Reference

#include <counting_allocator.h>

Classes

class  rebind
 

Public Types

using Allocator = std::allocator< T >
 
using Allocator = std::allocator< T >
 
using AllocatorTraits = std::allocator_traits< Allocator >
 
using AllocatorTraits = std::allocator_traits< Allocator >
 
using const_pointer = typename AllocatorTraits::const_pointer
 
using const_pointer = typename AllocatorTraits::const_pointer
 
using difference_type = typename AllocatorTraits::difference_type
 
using difference_type = typename AllocatorTraits::difference_type
 
using pointer = typename AllocatorTraits::pointer
 
using pointer = typename AllocatorTraits::pointer
 
using size_type = typename AllocatorTraits::size_type
 
using size_type = typename AllocatorTraits::size_type
 
using value_type = typename AllocatorTraits::value_type
 
using value_type = typename AllocatorTraits::value_type
 

Public Member Functions

pointer allocate (size_type n, typename AllocatorTraits::const_void_pointer hint=nullptr)
 
pointer allocate (size_type n, typename AllocatorTraits::const_void_pointer hint=nullptr)
 
template<typename U , typename... Args>
void construct (U *p, Args &&... args)
 
template<typename U , typename... Args>
void construct (U *p, Args &&... args)
 
 CountingAllocator ()=default
 
 CountingAllocator ()=default
 
template<typename U >
 CountingAllocator (const CountingAllocator< U > &x)
 
template<typename U >
 CountingAllocator (const CountingAllocator< U > &x)
 
 CountingAllocator (int64_t *bytes_used)
 
 CountingAllocator (int64_t *bytes_used)
 
 CountingAllocator (int64_t *bytes_used, int64_t *instance_count)
 
 CountingAllocator (int64_t *bytes_used, int64_t *instance_count)
 
void deallocate (pointer p, size_type n)
 
void deallocate (pointer p, size_type n)
 
template<typename U >
void destroy (U *p)
 
template<typename U >
void destroy (U *p)
 

Public Attributes

int64_tbytes_used_ = nullptr
 
int64_tinstance_count_ = nullptr
 

Friends

bool operator!= (const CountingAllocator &a, const CountingAllocator &b)
 
bool operator!= (const CountingAllocator &a, const CountingAllocator &b)
 
bool operator== (const CountingAllocator &a, const CountingAllocator &b)
 
bool operator== (const CountingAllocator &a, const CountingAllocator &b)
 

Detailed Description

template<typename T>
class absl::container_internal::CountingAllocator< T >

Definition at line 33 of file abseil-cpp/absl/container/internal/counting_allocator.h.

Member Typedef Documentation

◆ Allocator [1/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::Allocator = std::allocator<T>

◆ Allocator [2/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::Allocator = std::allocator<T>

◆ AllocatorTraits [1/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::AllocatorTraits = std::allocator_traits<Allocator>

◆ AllocatorTraits [2/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::AllocatorTraits = std::allocator_traits<Allocator>

◆ const_pointer [1/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::const_pointer = typename AllocatorTraits::const_pointer

◆ const_pointer [2/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::const_pointer = typename AllocatorTraits::const_pointer

◆ difference_type [1/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::difference_type = typename AllocatorTraits::difference_type

◆ difference_type [2/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::difference_type = typename AllocatorTraits::difference_type

◆ pointer [1/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::pointer = typename AllocatorTraits::pointer

◆ pointer [2/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::pointer = typename AllocatorTraits::pointer

◆ size_type [1/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::size_type = typename AllocatorTraits::size_type

◆ size_type [2/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::size_type = typename AllocatorTraits::size_type

◆ value_type [1/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::value_type = typename AllocatorTraits::value_type

◆ value_type [2/2]

template<typename T >
using absl::container_internal::CountingAllocator< T >::value_type = typename AllocatorTraits::value_type

Constructor & Destructor Documentation

◆ CountingAllocator() [1/8]

template<typename T >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( )
default

◆ CountingAllocator() [2/8]

template<typename T >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( int64_t bytes_used)
inlineexplicit

◆ CountingAllocator() [3/8]

template<typename T >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( int64_t bytes_used,
int64_t instance_count 
)
inline

◆ CountingAllocator() [4/8]

template<typename T >
template<typename U >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( const CountingAllocator< U > &  x)
inline

◆ CountingAllocator() [5/8]

template<typename T >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( )
default

◆ CountingAllocator() [6/8]

template<typename T >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( int64_t bytes_used)
inlineexplicit

◆ CountingAllocator() [7/8]

template<typename T >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( int64_t bytes_used,
int64_t instance_count 
)
inline

◆ CountingAllocator() [8/8]

template<typename T >
template<typename U >
absl::container_internal::CountingAllocator< T >::CountingAllocator ( const CountingAllocator< U > &  x)
inline

Member Function Documentation

◆ allocate() [1/2]

template<typename T >
pointer absl::container_internal::CountingAllocator< T >::allocate ( size_type  n,
typename AllocatorTraits::const_void_pointer  hint = nullptr 
)
inline

◆ allocate() [2/2]

template<typename T >
pointer absl::container_internal::CountingAllocator< T >::allocate ( size_type  n,
typename AllocatorTraits::const_void_pointer  hint = nullptr 
)
inline

◆ construct() [1/2]

template<typename T >
template<typename U , typename... Args>
void absl::container_internal::CountingAllocator< T >::construct ( U *  p,
Args &&...  args 
)
inline

◆ construct() [2/2]

template<typename T >
template<typename U , typename... Args>
void absl::container_internal::CountingAllocator< T >::construct ( U *  p,
Args &&...  args 
)
inline

◆ deallocate() [1/2]

template<typename T >
void absl::container_internal::CountingAllocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

◆ deallocate() [2/2]

template<typename T >
void absl::container_internal::CountingAllocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

◆ destroy() [1/2]

template<typename T >
template<typename U >
void absl::container_internal::CountingAllocator< T >::destroy ( U *  p)
inline

◆ destroy() [2/2]

template<typename T >
template<typename U >
void absl::container_internal::CountingAllocator< T >::destroy ( U *  p)
inline

Friends And Related Function Documentation

◆ operator!= [1/2]

template<typename T >
bool operator!= ( const CountingAllocator< T > &  a,
const CountingAllocator< T > &  b 
)
friend

◆ operator!= [2/2]

template<typename T >
bool operator!= ( const CountingAllocator< T > &  a,
const CountingAllocator< T > &  b 
)
friend

◆ operator== [1/2]

template<typename T >
bool operator== ( const CountingAllocator< T > &  a,
const CountingAllocator< T > &  b 
)
friend

◆ operator== [2/2]

template<typename T >
bool operator== ( const CountingAllocator< T > &  a,
const CountingAllocator< T > &  b 
)
friend

Member Data Documentation

◆ bytes_used_

template<typename T >
int64_t * absl::container_internal::CountingAllocator< T >::bytes_used_ = nullptr

◆ instance_count_

template<typename T >
int64_t * absl::container_internal::CountingAllocator< T >::instance_count_ = nullptr

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:31