Lines Matching refs:allocator
23 #include "base/allocator.h"
31 typename Allocator = TrackingAllocator<std::pair<const K, V>, kAllocatorTagSafeMap>>
34 typedef SafeMap<K, V, Comparator, Allocator> Self;
37 typedef typename ::std::map<K, V, Comparator, Allocator>::key_compare key_compare;
38 typedef typename ::std::map<K, V, Comparator, Allocator>::value_compare value_compare;
39 typedef typename ::std::map<K, V, Comparator, Allocator>::allocator_type allocator_type;
40 typedef typename ::std::map<K, V, Comparator, Allocator>::iterator iterator;
41 typedef typename ::std::map<K, V, Comparator, Allocator>::const_iterator const_iterator;
42 typedef typename ::std::map<K, V, Comparator, Allocator>::size_type size_type;
43 typedef typename ::std::map<K, V, Comparator, Allocator>::key_type key_type;
44 typedef typename ::std::map<K, V, Comparator, Allocator>::value_type value_type;
47 explicit SafeMap(const key_compare& cmp, const allocator_type& allocator = allocator_type())
48 : map_(cmp, allocator) {
119 ::std::map<K, V, Comparator, Allocator> map_;
122 template <typename K, typename V, typename Comparator, typename Allocator>
123 bool operator==(const SafeMap<K, V, Comparator, Allocator>& lhs,
124 const SafeMap<K, V, Comparator, Allocator>& rhs) {
128 template <typename K, typename V, typename Comparator, typename Allocator>
129 bool operator!=(const SafeMap<K, V, Comparator, Allocator>& lhs,
130 const SafeMap<K, V, Comparator, Allocator>& rhs) {