reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
421 template<class T> void Swap(T& a, T& b) { 421 template<class T> void Swap(T& a, T& b) { 422 T tmp = a; 452 T &operator[](uptr i) { 456 const T &operator[](uptr i) const { 460 void push_back(const T &element) { 466 internal_memcpy(&data_[size_++], &element, sizeof(T)); 468 T &back() { 479 const T *data() const { 482 T *data() { 485 uptr capacity() const { return capacity_bytes_ / sizeof(T); } 502 const T *begin() const { 505 T *begin() { 508 const T *end() const { 511 T *end() { 526 RoundUpTo(new_capacity * sizeof(T), GetPageSizeCached()); 527 T *new_data = (T *)MmapOrDie(new_capacity_bytes, "InternalMmapVector"); 528 internal_memcpy(new_data, data_, size_ * sizeof(T)); 534 T *data_; 553 class InternalMmapVector : public InternalMmapVectorNoCtor<T> { 592 void Sort(T *v, uptr size, Compare comp = {}) { 631 const Value &val, Compare comp) {projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
119 const StackDepotReverseMap::IdDescPair &a, 120 const StackDepotReverseMap::IdDescPair &b) { 131 IdDescPair pair = {s->id, s}; 135 Sort(map_.data(), map_.size(), &IdDescPair::IdComparator); 141 IdDescPair pair = {id, nullptr}; 143 InternalLowerBound(map_, 0, map_.size(), pair, IdDescPair::IdComparator);projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.h
59 static bool IdComparator(const IdDescPair &a, const IdDescPair &b); 59 static bool IdComparator(const IdDescPair &a, const IdDescPair &b); 62 InternalMmapVector<IdDescPair> map_;