Refactor advanced insertion algorithms and implement a new devector insert strategy, moving elements to the middle if there is a reasonable free capacity at the other end of the container.

This commit is contained in:
Ion Gaztañaga committed 2022-09-20 00:22:19 +02:00
1 parent 8b27fefb8e
commit 704bf10058
13 files changed
+2574 -1934

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ template <typename Container>
void get_range(int count, Container &c)
{
c.clear();
c.reserve(static_cast<std::size_t>(count));
for (int i = 1; i <= count; ++i)
{