const_list: fixed size in merge
This commit is contained in:
parent
03a694431c
commit
8de4b1a3c4
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue