mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 14:04:26 +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);
|
||||
++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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user