We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replace_empty_allocation
bounded_vector
1 parent 68b2703 commit dbc7d28Copy full SHA for dbc7d28
source/containers/bounded_vector.cpp
@@ -124,8 +124,7 @@ struct [[clang::trivial_abi]] bounded_vector : private lexicographical_compariso
124
}
125
if constexpr (min_capacity > 0_bi) {
126
if (!m_storage.data()) {
127
- BOUNDED_ASSERT(m_size == 0_bi);
128
- m_storage.replace_allocation(reservation_size(other.size()));
+ replace_empty_allocation(other.size());
129
::containers::uninitialized_copy_no_overlap(other, data());
130
m_size = other.m_size;
131
return *this;
0 commit comments