Lines Matching defs:allocator

48                                AllocationPolicy allocator = AllocationPolicy());
55 AllocationPolicy allocator = AllocationPolicy());
106 impl_.allocator().DeleteArray(impl_.map_, capacity());
129 AllocationPolicy allocator() const { return impl_.allocator(); }
142 // To support matcher and allocator that may not be possible to
145 // matcher and allocator lets us take advantage of an empty base class
149 // adding match and allocator as [[no_unique_address]] fields.
151 Impl(MatchFun match, AllocationPolicy allocator)
152 : MatchFun(std::move(match)), AllocationPolicy(std::move(allocator)) {}
175 const AllocationPolicy& allocator() const { return *this; }
176 AllocationPolicy& allocator() { return *this; }
187 AllocationPolicy allocator)
188 : impl_(std::move(match), std::move(allocator)) {
196 AllocationPolicy allocator)
197 : impl_(original->impl_.match(), std::move(allocator)) {
200 impl_.map_ = impl_.allocator().template NewArray<Entry>(capacity());
208 if (impl_.map_) impl_.allocator().DeleteArray(impl_.map_, capacity());
401 impl_.map_ = impl_.allocator().template NewArray<Entry>(capacity);
431 impl_.allocator().DeleteArray(old_map, old_capacity);
465 AllocationPolicy allocator = AllocationPolicy())
467 allocator) {}
471 AllocationPolicy allocator = AllocationPolicy())
472 : Base(original, allocator) {}
503 AllocationPolicy allocator = AllocationPolicy())
504 : Base(capacity, KeyEqualityMatcher<void*>(), allocator) {}
507 AllocationPolicy allocator = AllocationPolicy())
508 : Base(&other, allocator) {}
561 AllocationPolicy allocator = AllocationPolicy())
563 HashEqualityThenKeyMatcher<void*, MatchFun>(match), allocator) {}