Classes | Public Member Functions | Public Attributes | Friends
absl::container_internal::CountingAllocator< T > Class Template Reference

#include <counting_allocator.h>

List of all members.

Classes

class  rebind

Public Member Functions

pointer allocate (size_type n, std::allocator< void >::const_pointer hint=nullptr)
 CountingAllocator ()
 CountingAllocator (int64_t *b)
template<typename U >
 CountingAllocator (const CountingAllocator< U > &x)
void deallocate (pointer p, size_type n)

Public Attributes

int64_t * bytes_used_

Friends

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 31 of file counting_allocator.h.


Constructor & Destructor Documentation

template<typename T>
absl::container_internal::CountingAllocator< T >::CountingAllocator ( ) [inline]

Definition at line 37 of file counting_allocator.h.

template<typename T>
absl::container_internal::CountingAllocator< T >::CountingAllocator ( int64_t *  b) [inline, explicit]

Definition at line 38 of file counting_allocator.h.

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

Definition at line 41 of file counting_allocator.h.


Member Function Documentation

template<typename T>
pointer absl::container_internal::CountingAllocator< T >::allocate ( size_type  n,
std::allocator< void >::const_pointer  hint = nullptr 
) [inline]

Definition at line 44 of file counting_allocator.h.

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

Definition at line 51 of file counting_allocator.h.


Friends And Related Function Documentation

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

Definition at line 68 of file counting_allocator.h.

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

Definition at line 63 of file counting_allocator.h.


Member Data Documentation

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

Definition at line 73 of file counting_allocator.h.


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


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:16