#include <counting_allocator.h>
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) |
Definition at line 31 of file counting_allocator.h.
| absl::container_internal::CountingAllocator< T >::CountingAllocator | ( | ) | [inline] |
Definition at line 37 of file counting_allocator.h.
| absl::container_internal::CountingAllocator< T >::CountingAllocator | ( | int64_t * | b | ) | [inline, explicit] |
Definition at line 38 of file counting_allocator.h.
| absl::container_internal::CountingAllocator< T >::CountingAllocator | ( | const CountingAllocator< U > & | x | ) | [inline] |
Definition at line 41 of file counting_allocator.h.
| 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.
| void absl::container_internal::CountingAllocator< T >::deallocate | ( | pointer | p, |
| size_type | n | ||
| ) | [inline] |
Definition at line 51 of file counting_allocator.h.
| bool operator!= | ( | const CountingAllocator< T > & | a, |
| const CountingAllocator< T > & | b | ||
| ) | [friend] |
Definition at line 68 of file counting_allocator.h.
| bool operator== | ( | const CountingAllocator< T > & | a, |
| const CountingAllocator< T > & | b | ||
| ) | [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.