template <typename U>
class MapAllocator
Defined at line 104 of file ../../third_party/protobuf/src/google/protobuf/map.h
re-implement std::allocator to use arena allocator for memory allocation.
Used for Map implementation. Users should not use this class
directly.
Public Methods
void MapAllocator<U> ()
Defined at line 114 of file ../../third_party/protobuf/src/google/protobuf/map.h
void MapAllocator<U> (Arena * arena)
Defined at line 115 of file ../../third_party/protobuf/src/google/protobuf/map.h
template <typename X>
void MapAllocator<U> (const MapAllocator<X> & allocator)
Defined at line 117 of file ../../third_party/protobuf/src/google/protobuf/map.h
pointer allocate (size_type n, const void * )
Defined at line 125 of file ../../third_party/protobuf/src/google/protobuf/map.h
void deallocate (pointer p, size_type n)
Defined at line 136 of file ../../third_party/protobuf/src/google/protobuf/map.h
template <class NodeType, class... Args>
void construct (NodeType * p, Args &&... args)
Defined at line 145 of file ../../third_party/protobuf/src/google/protobuf/map.h
template <class NodeType>
void destroy (NodeType * p)
Defined at line 155 of file ../../third_party/protobuf/src/google/protobuf/map.h
template <typename X>
bool operator== (const MapAllocator<X> & other)
Defined at line 170 of file ../../third_party/protobuf/src/google/protobuf/map.h
template <typename X>
bool operator!= (const MapAllocator<X> & other)
Defined at line 175 of file ../../third_party/protobuf/src/google/protobuf/map.h
size_type max_size ()
To support Visual Studio 2008
Defined at line 180 of file ../../third_party/protobuf/src/google/protobuf/map.h
Arena * arena ()
To support gcc-4.4, which does not properly
support templated friend classes
Defined at line 187 of file ../../third_party/protobuf/src/google/protobuf/map.h