diff options
Diffstat (limited to 'boost/intrusive/bstree.hpp')
-rw-r--r-- | boost/intrusive/bstree.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/boost/intrusive/bstree.hpp b/boost/intrusive/bstree.hpp index ac67e864a0..410eedf930 100644 --- a/boost/intrusive/bstree.hpp +++ b/boost/intrusive/bstree.hpp @@ -725,15 +725,22 @@ class bstree_impl this->insert_equal(b, e); } - //! <b>Effects</b>: to-do + //! <b>Effects</b>: Constructs a container moving resources from another container. + //! Internal comparison object and value traits are move constructed and + //! nodes belonging to x (except the node representing the "end") are linked to *this. //! + //! <b>Complexity</b>: Constant. + //! + //! <b>Throws</b>: If value_traits::node_traits::node's + //! move constructor throws (this does not happen with predefined Boost.Intrusive hooks) + //! or the move constructor of the comparison objet throws. bstree_impl(BOOST_RV_REF(bstree_impl) x) : data_type(::boost::move(x.comp()), ::boost::move(x.get_value_traits())) { this->swap(x); } - //! <b>Effects</b>: to-do + //! <b>Effects</b>: Equivalent to swap //! BOOST_INTRUSIVE_FORCEINLINE bstree_impl& operator=(BOOST_RV_REF(bstree_impl) x) { this->swap(x); return *this; } |