forked from boostorg/container
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:
1 parent
8b27fefb8e
commit
704bf10058
13 files changed
+2574
-1934
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user