• Home
  • Raw
  • Download

Lines Matching refs:storage_

112   InlinedVector() noexcept(noexcept(allocator_type())) : storage_() {}  in noexcept()
116 : storage_(alloc) {} in InlinedVector()
121 : storage_(alloc) { in storage_() function
122 storage_.Initialize(DefaultValueAdapter(), n); in storage_()
128 : storage_(alloc) { in storage_() function
129 storage_.Initialize(CopyValueAdapter(v), n); in storage_()
147 : storage_(alloc) { in storage_() function
148 storage_.Initialize(IteratorValueAdapter<ForwardIterator>(first), in storage_()
158 : storage_(alloc) { in storage_() function
165 : InlinedVector(other, *other.storage_.GetAllocPtr()) {} in InlinedVector()
169 : storage_(alloc) { in InlinedVector()
170 if (IsMemcpyOk::value && !other.storage_.GetIsAllocated()) { in InlinedVector()
171 storage_.MemcpyFrom(other.storage_); in InlinedVector()
173 storage_.Initialize(IteratorValueAdapter<const_pointer>(other.data()), in InlinedVector()
195 : storage_(*other.storage_.GetAllocPtr()) {
197 storage_.MemcpyFrom(other.storage_);
199 other.storage_.SetInlinedSize(0);
200 } else if (other.storage_.GetIsAllocated()) {
201 storage_.SetAllocatedData(other.storage_.GetAllocatedData(),
202 other.storage_.GetAllocatedCapacity());
203 storage_.SetAllocatedSize(other.storage_.GetSize());
205 other.storage_.SetInlinedSize(0);
208 MoveIterator(other.storage_.GetInlinedData()));
211 storage_.GetAllocPtr(), storage_.GetInlinedData(), &other_values,
212 other.storage_.GetSize());
214 storage_.SetInlinedSize(other.storage_.GetSize());
227 : storage_(alloc) { in InlinedVector()
229 storage_.MemcpyFrom(other.storage_); in InlinedVector()
231 other.storage_.SetInlinedSize(0); in InlinedVector()
232 } else if ((*storage_.GetAllocPtr() == *other.storage_.GetAllocPtr()) && in InlinedVector()
233 other.storage_.GetIsAllocated()) { in InlinedVector()
234 storage_.SetAllocatedData(other.storage_.GetAllocatedData(), in InlinedVector()
235 other.storage_.GetAllocatedCapacity()); in InlinedVector()
236 storage_.SetAllocatedSize(other.storage_.GetSize()); in InlinedVector()
238 other.storage_.SetInlinedSize(0); in InlinedVector()
240 storage_.Initialize( in InlinedVector()
260 size_type size() const noexcept { return storage_.GetSize(); } in size()
282 return storage_.GetIsAllocated() ? storage_.GetAllocatedCapacity() in capacity()
283 : storage_.GetInlinedCapacity(); in capacity()
293 return storage_.GetIsAllocated() ? storage_.GetAllocatedData() in data()
294 : storage_.GetInlinedData(); in data()
303 return storage_.GetIsAllocated() ? storage_.GetAllocatedData() in data()
304 : storage_.GetInlinedData(); in data()
443 allocator_type get_allocator() const { return *storage_.GetAllocPtr(); } in get_allocator()
477 if (IsMemcpyOk::value || other.storage_.GetIsAllocated()) {
478 inlined_vector_internal::DestroyElements(storage_.GetAllocPtr(), data(),
480 storage_.DeallocateIfAllocated();
481 storage_.MemcpyFrom(other.storage_);
483 other.storage_.SetInlinedSize(0);
485 storage_.Assign(IteratorValueAdapter<MoveIterator>(
486 MoveIterator(other.storage_.GetInlinedData())),
498 storage_.Assign(CopyValueAdapter(v), n); in assign()
514 storage_.Assign(IteratorValueAdapter<ForwardIterator>(first), in assign()
542 storage_.Resize(DefaultValueAdapter(), n); in resize()
552 storage_.Resize(CopyValueAdapter(v), n); in resize()
578 return storage_.Insert(pos, CopyValueAdapter(dealias), n); in insert()
604 return storage_.Insert(pos, IteratorValueAdapter<ForwardIterator>(first), in insert()
640 return storage_.Insert(pos, in emplace()
652 return storage_.EmplaceBack(std::forward<Args>(args)...); in emplace_back()
672 AllocatorTraits::destroy(*storage_.GetAllocPtr(), data() + (size() - 1)); in pop_back()
673 storage_.SubtractSize(1); in pop_back()
686 return storage_.Erase(pos, pos + 1); in erase()
700 return storage_.Erase(from, to); in erase()
711 inlined_vector_internal::DestroyElements(storage_.GetAllocPtr(), data(), in clear()
713 storage_.DeallocateIfAllocated(); in clear()
715 storage_.SetInlinedSize(0); in clear()
721 void reserve(size_type n) { storage_.Reserve(n); } in reserve()
735 if (storage_.GetIsAllocated()) { in shrink_to_fit()
736 storage_.ShrinkToFit(); in shrink_to_fit()
745 storage_.Swap(std::addressof(other.storage_)); in swap()
753 Storage storage_; variable