mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 14:34:27 +02:00
Use emplace instead or push_back in priv_insert_ordered_range
This commit is contained in:
@@ -983,7 +983,9 @@ class flat_tree
|
|||||||
BidirIt next(first);
|
BidirIt next(first);
|
||||||
++next;
|
++next;
|
||||||
if(next == last || val_cmp(*first, *next)){
|
if(next == last || val_cmp(*first, *next)){
|
||||||
this->m_data.m_vect.push_back(*first);
|
const bool room = this->m_data.m_vect.stable_emplace_back(*first);
|
||||||
|
(void)room;
|
||||||
|
BOOST_ASSERT(room);
|
||||||
}
|
}
|
||||||
first = next;
|
first = next;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user