15 #ifndef ABSL_CONTAINER_INTERNAL_COUNTING_ALLOCATOR_H_ 16 #define ABSL_CONTAINER_INTERNAL_COUNTING_ALLOCATOR_H_ 23 namespace container_internal {
33 using Alloc = std::allocator<T>;
45 std::allocator<void>::const_pointer hint =
nullptr) {
48 return Alloc::allocate(n, hint);
52 Alloc::deallocate(p, n);
79 #endif // ABSL_CONTAINER_INTERNAL_COUNTING_ALLOCATOR_H_ typename Alloc::pointer pointer
std::allocator< T > Alloc
friend bool operator==(const CountingAllocator &a, const CountingAllocator &b)
void deallocate(pointer p, size_type n)
friend bool operator!=(const CountingAllocator &a, const CountingAllocator &b)
pointer allocate(size_type n, std::allocator< void >::const_pointer hint=nullptr)
typename Alloc::size_type size_type
CountingAllocator(int64_t *b)
CountingAllocator(const CountingAllocator< U > &x)