#include <counting_allocator.h>
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) |
Definition at line 31 of file counting_allocator.h.
using absl::container_internal::CountingAllocator< T >::Alloc = std::allocator<T> |
Definition at line 33 of file counting_allocator.h.
using absl::container_internal::CountingAllocator< T >::pointer = typename Alloc::pointer |
Definition at line 34 of file counting_allocator.h.
using absl::container_internal::CountingAllocator< T >::size_type = typename Alloc::size_type |
Definition at line 35 of file counting_allocator.h.
|
inline |
Definition at line 37 of file counting_allocator.h.
|
inlineexplicit |
Definition at line 38 of file counting_allocator.h.
|
inline |
Definition at line 41 of file counting_allocator.h.
|
inline |
Definition at line 44 of file counting_allocator.h.
|
inline |
Definition at line 51 of file counting_allocator.h.
|
friend |
Definition at line 68 of file counting_allocator.h.
|
friend |
Definition at line 63 of file counting_allocator.h.
int64_t* absl::container_internal::CountingAllocator< T >::bytes_used_ |
Definition at line 73 of file counting_allocator.h.