diff --git a/doc/container.qbk b/doc/container.qbk index 187f62c..ab0a87b 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -1342,8 +1342,9 @@ use [*Boost.Container]? There are several reasons for that: * Added [[no-discard]] attribute in all containers to catch bugs related to unused return values. * Fixed bugs/issues: - * [@https://github.com/boostorg/container/issues/171 GitHub #171: ['"deque::clear() uses undefined behaviour"]]. + * [@https://github.com/boostorg/container/issues/139 GitHub #139: ['"flat_map merge and iterators"]]. * [@https://github.com/boostorg/container/issues/164 GitHub #164: ['"Compile error when using `pmr::map` with a `std::pair`; works when using a `std::tuple`"]]. + * [@https://github.com/boostorg/container/issues/171 GitHub #171: ['"deque::clear() uses undefined behaviour"]]. [endsect] diff --git a/include/boost/container/flat_map.hpp b/include/boost/container/flat_map.hpp index 3f69926..70d3745 100644 --- a/include/boost/container/flat_map.hpp +++ b/include/boost/container/flat_map.hpp @@ -1211,16 +1211,9 @@ class flat_map //! Requires: this->get_allocator() == source.get_allocator(). //! - //! Effects: Attempts to extract each element in source and insert it into a using + //! Effects: Move-inserts each element from source into *this a using //! 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 extracted from source. - //! - //! Postcondition: Pointers and references to the transferred elements of source refer - //! to those same elements but as members of *this. Iterators referring to the transferred - //! elements will continue to refer to their elements, but they now behave as iterators into *this, - //! not into source. - //! - //! Throws: Nothing unless the comparison object throws. + //! 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()) template @@ -2580,15 +2573,8 @@ class flat_multimap //! Requires: this->get_allocator() == source.get_allocator(). //! - //! Effects: Extracts each element in source and insert it into a using + //! Effects: Move-inserts each element from source into *this a using //! the comparison object of *this. - //! - //! Postcondition: Pointers and references to the transferred elements of source refer - //! to those same elements but as members of *this. Iterators referring to the transferred - //! elements will continue to refer to their elements, but they now behave as iterators into *this, - //! not into source. - //! - //! Throws: Nothing unless the comparison object throws. //! //! Complexity: N log(size() + N) (N has the value source.size()) template