mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
Big, possibly complete sweep of naming changes.
This commit is contained in:
parent
27fa09aee4
commit
ffab6897aa
93 changed files with 830 additions and 885 deletions
|
@ -219,16 +219,16 @@ public:
|
|||
if (capacity() >= neededCapacity)
|
||||
return;
|
||||
size_t new_capacity = padded_capacity(neededCapacity);
|
||||
auto newImpl = VectorImpl<T, Allocator>::create(new_capacity);
|
||||
auto new_impl = VectorImpl<T, Allocator>::create(new_capacity);
|
||||
if (m_impl) {
|
||||
newImpl->m_size = m_impl->m_size;
|
||||
new_impl->m_size = m_impl->m_size;
|
||||
for (size_t i = 0; i < size(); ++i) {
|
||||
new (newImpl->slot(i)) T(move(m_impl->at(i)));
|
||||
new (new_impl->slot(i)) T(move(m_impl->at(i)));
|
||||
m_impl->at(i).~T();
|
||||
}
|
||||
Allocator::deallocate(m_impl);
|
||||
}
|
||||
m_impl = newImpl;
|
||||
m_impl = new_impl;
|
||||
}
|
||||
|
||||
void resize(size_t new_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue