const_list: fixed size in merge

This commit is contained in:
cyborg1811m 2024-02-08 19:46:17 +01:00
parent 03a694431c
commit 8de4b1a3c4
1 changed files with 4 additions and 0 deletions

View File

@ -439,6 +439,7 @@ namespace cc {
auto next = std::next(first2); auto next = std::next(first2);
first1._node->push_before(first2._node); first1._node->push_before(first2._node);
++_size;
first2 = next; first2 = next;
} else { } else {
@ -450,6 +451,7 @@ namespace cc {
auto next = std::next(first2); auto next = std::next(first2);
_tail.push_before(first2._node); _tail.push_before(first2._node);
++_size;
first2 = next; first2 = next;
} }
@ -473,6 +475,7 @@ namespace cc {
auto next = std::next(first2); auto next = std::next(first2);
first1._node->push_before(first2._node); first1._node->push_before(first2._node);
++_size;
first2 = next; first2 = next;
} else { } else {
@ -484,6 +487,7 @@ namespace cc {
auto next = std::next(first2); auto next = std::next(first2);
_tail.push_before(first2._node); _tail.push_before(first2._node);
++_size;
first2 = next; first2 = next;
} }