From 6580c94573baf362f8b7cc75f7a05dd7967ccb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 8 Apr 2017 00:23:41 +0200 Subject: [PATCH] Documentation fixes --- include/boost/container/flat_map.hpp | 16 ++++++++-------- include/boost/container/flat_set.hpp | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/boost/container/flat_map.hpp b/include/boost/container/flat_map.hpp index 50e25d8..ebfd44e 100644 --- a/include/boost/container/flat_map.hpp +++ b/include/boost/container/flat_map.hpp @@ -1258,10 +1258,10 @@ class flat_map return boost::move(container_detail::force(m_flat_tree.get_sequence_ref())); } - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. Erases non-unique elements. //! - //! Complexity: Assuming O(1) move assignmet, O(NlogN) with N = seq.size() + //! Complexity: Assuming O(1) move assignment, O(NlogN) with N = seq.size() //! //! Throws: If the comparison or the move constructor throws void adopt_sequence(BOOST_RV_REF(sequence_type) seq) @@ -1270,12 +1270,12 @@ class flat_map //! Requires: seq shall be ordered according to this->compare() //! and shall contain unique elements. //! - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. //! //! Complexity: Assuming O(1) move assignment, O(1) //! - //! Throws: If the move constructor throws + //! Throws: If the move assignment throws void adopt_sequence(ordered_unique_range_t, BOOST_RV_REF(sequence_type) seq) { this->m_flat_tree.adopt_sequence_unique(ordered_unique_range_t(), boost::move(container_detail::force(seq))); } @@ -2269,10 +2269,10 @@ class flat_multimap return boost::move(container_detail::force(m_flat_tree.get_sequence_ref())); } - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. //! - //! Complexity: Assuming O(1) move assignmet, O(NlogN) with N = seq.size() + //! Complexity: Assuming O(1) move assignment, O(NlogN) with N = seq.size() //! //! Throws: If the comparison or the move constructor throws void adopt_sequence(BOOST_RV_REF(sequence_type) seq) @@ -2280,12 +2280,12 @@ class flat_multimap //! Requires: seq shall be ordered according to this->compare(). //! - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. //! //! Complexity: Assuming O(1) move assignment, O(1) //! - //! Throws: If the move constructor throws + //! Throws: If the move assignment throws void adopt_sequence(ordered_range_t, BOOST_RV_REF(sequence_type) seq) { this->m_flat_tree.adopt_sequence_equal(ordered_range_t(), boost::move(container_detail::force(seq))); } diff --git a/include/boost/container/flat_set.hpp b/include/boost/container/flat_set.hpp index e58ea4f..1068734 100644 --- a/include/boost/container/flat_set.hpp +++ b/include/boost/container/flat_set.hpp @@ -856,10 +856,10 @@ class flat_set #endif //#ifdef BOOST_CONTAINER_DOXYGEN_INVOKED - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. Erases non-unique elements. //! - //! Complexity: Assuming O(1) move assignmet, O(NlogN) with N = seq.size() + //! Complexity: Assuming O(1) move assignment, O(NlogN) with N = seq.size() //! //! Throws: If the comparison or the move constructor throws void adopt_sequence(BOOST_RV_REF(sequence_type) seq) @@ -868,12 +868,12 @@ class flat_set //! Requires: seq shall be ordered according to this->compare() //! and shall contain unique elements. //! - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. //! //! Complexity: Assuming O(1) move assignment, O(1) //! - //! Throws: If the move constructor throws + //! Throws: If the move assignment throws void adopt_sequence(ordered_unique_range_t, BOOST_RV_REF(sequence_type) seq) { this->base_t::adopt_sequence_unique(ordered_unique_range_t(), boost::move(seq)); } @@ -1435,10 +1435,10 @@ class flat_multiset #endif //#ifdef BOOST_CONTAINER_DOXYGEN_INVOKED - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. //! - //! Complexity: Assuming O(1) move assignmet, O(NlogN) with N = seq.size() + //! Complexity: Assuming O(1) move assignment, O(NlogN) with N = seq.size() //! //! Throws: If the comparison or the move constructor throws void adopt_sequence(BOOST_RV_REF(sequence_type) seq) @@ -1446,12 +1446,12 @@ class flat_multiset //! Requires: seq shall be ordered according to this->compare() //! - //! Effects: Discards the internally hold sequence container and move adopts the + //! Effects: Discards the internally hold sequence container and adopts the //! one passed externally using the move assignment. //! //! Complexity: Assuming O(1) move assignment, O(1) //! - //! Throws: If the move constructor throws + //! Throws: If the move assignment throws void adopt_sequence(ordered_range_t, BOOST_RV_REF(sequence_type) seq) { this->base_t::adopt_sequence_equal(ordered_range_t(), boost::move(seq)); }