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>

Inheritance diagram for absl::container_internal::CountingAllocator< T >:
Inheritance graph
[legend]

Classes

class  rebind
 

Public Types

using Alloc = std::allocator< T >
 
using pointer = typename Alloc::pointer
 
using size_type = typename Alloc::size_type
 

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.

Member Typedef Documentation

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

Definition at line 33 of file counting_allocator.h.

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

Definition at line 34 of file counting_allocator.h.

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

Definition at line 35 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)
inlineexplicit

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 Tue Jun 18 2019 19:44:38