diff --git a/include/boost/container/flat_map.hpp b/include/boost/container/flat_map.hpp index 70d3745..4cf41af 100644 --- a/include/boost/container/flat_map.hpp +++ b/include/boost/container/flat_map.hpp @@ -1215,7 +1215,9 @@ class flat_map //! the comparison object of *this. If there is an element in a with key equivalent to the //! key of an element from source, then that element is not moved from source. //! - //! Complexity: N log(size() + N) (N has the value source.size()) + //! Complexity: Linear in this->size() + source.size(). + //! + //! Note: Invalidates all iterators and references. template BOOST_CONTAINER_FORCEINLINE void merge(flat_map& source) { m_flat_tree.merge_unique(source.tree()); } @@ -2576,7 +2578,9 @@ class flat_multimap //! Effects: Move-inserts each element from source into *this a using //! the comparison object of *this. //! - //! Complexity: N log(size() + N) (N has the value source.size()) + //! Complexity: Linear in this->size() + source.size(). + //! + //! Note: Invalidates all iterators and references. template BOOST_CONTAINER_FORCEINLINE void merge(flat_multimap& source) { m_flat_tree.merge_equal(source.tree()); }