• Home
  • Raw
  • Download

Lines Matching refs:Elt

141   bool isSafeToReferenceAfterResize(const void *Elt, size_t NewSize) {  in isSafeToReferenceAfterResize()  argument
143 if (LLVM_LIKELY(Elt < this->begin() || Elt >= this->end())) in isSafeToReferenceAfterResize()
148 return Elt < this->begin() + NewSize; in isSafeToReferenceAfterResize()
155 void assertSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { in assertSafeToReferenceAfterResize() argument
156 assert(isSafeToReferenceAfterResize(Elt, NewSize) && in assertSafeToReferenceAfterResize()
163 void assertSafeToAdd(const void *Elt, size_t N = 1) {
164 this->assertSafeToReferenceAfterResize(Elt, this->size() + N);
316 void push_back(const T &Elt) { in push_back() argument
317 this->assertSafeToAdd(&Elt); in push_back()
320 ::new ((void*) this->end()) T(Elt); in push_back()
324 void push_back(T &&Elt) { in push_back() argument
325 this->assertSafeToAdd(&Elt); in push_back()
328 ::new ((void*) this->end()) T(::std::move(Elt)); in push_back()
420 void push_back(const T &Elt) { in push_back() argument
421 this->assertSafeToAdd(&Elt); in push_back()
424 memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T)); in push_back()
528 void append(size_type NumInputs, const T &Elt) { in append() argument
529 this->assertSafeToAdd(&Elt, NumInputs); in append()
533 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append()
544 void assign(size_type NumElts, const T &Elt) { in assign() argument
545 this->assertSafeToReferenceAfterResize(&Elt, 0); in assign()
550 std::uninitialized_fill(this->begin(), this->end(), Elt); in assign()
602 template <class ArgType> iterator insert_one_impl(iterator I, ArgType &&Elt) { in insert_one_impl() argument
604 this->push_back(::std::forward<ArgType>(Elt)); in insert_one_impl()
612 this->assertSafeToAdd(&Elt); in insert_one_impl()
627 std::remove_reference_t<ArgType> *EltPtr = &Elt; in insert_one_impl()
636 iterator insert(iterator I, T &&Elt) { in insert() argument
637 return insert_one_impl(I, std::move(Elt)); in insert()
640 iterator insert(iterator I, const T &Elt) { return insert_one_impl(I, Elt); } in insert() argument
642 iterator insert(iterator I, size_type NumToInsert, const T &Elt) { in insert() argument
647 append(NumToInsert, Elt); in insert()
655 this->assertSafeToAdd(&Elt, NumToInsert); in insert()
675 std::fill_n(I, NumToInsert, Elt); in insert()
689 std::fill_n(I, NumOverwritten, Elt); in insert()
692 std::uninitialized_fill_n(OldEnd, NumToInsert-NumOverwritten, Elt); in insert()