forked from boostorg/intrusive
Closes #25 in GitHub ("Document the behavior of move constructor for slist")
This commit is contained in:
@@ -725,15 +725,22 @@ class bstree_impl
|
|||||||
this->insert_equal(b, e);
|
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)
|
bstree_impl(BOOST_RV_REF(bstree_impl) x)
|
||||||
: data_type(::boost::move(x.comp()), ::boost::move(x.get_value_traits()))
|
: data_type(::boost::move(x.comp()), ::boost::move(x.get_value_traits()))
|
||||||
{
|
{
|
||||||
this->swap(x);
|
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)
|
BOOST_INTRUSIVE_FORCEINLINE bstree_impl& operator=(BOOST_RV_REF(bstree_impl) x)
|
||||||
{ this->swap(x); return *this; }
|
{ this->swap(x); return *this; }
|
||||||
|
@@ -1798,8 +1798,15 @@ class hashtable_impl
|
|||||||
this->insert_equal(b, e);
|
this->insert_equal(b, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! <b>Effects</b>: to-do
|
//! <b>Effects</b>: Constructs a container moving resources from another container.
|
||||||
|
//! Internal value traits, bucket traits, hasher and comparison are move constructed and
|
||||||
|
//! nodes belonging to x 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 value traits, bucket traits, hasher or comparison throws.
|
||||||
hashtable_impl(BOOST_RV_REF(hashtable_impl) x)
|
hashtable_impl(BOOST_RV_REF(hashtable_impl) x)
|
||||||
: internal_type( ::boost::move(x.priv_value_traits())
|
: internal_type( ::boost::move(x.priv_value_traits())
|
||||||
, ::boost::move(x.priv_bucket_traits())
|
, ::boost::move(x.priv_bucket_traits())
|
||||||
@@ -1815,7 +1822,7 @@ class hashtable_impl
|
|||||||
x.priv_split_traits().set_size(size_type(0));
|
x.priv_split_traits().set_size(size_type(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
//! <b>Effects</b>: to-do
|
//! <b>Effects</b>: Equivalnet to swap.
|
||||||
//!
|
//!
|
||||||
hashtable_impl& operator=(BOOST_RV_REF(hashtable_impl) x)
|
hashtable_impl& operator=(BOOST_RV_REF(hashtable_impl) x)
|
||||||
{ this->swap(x); return *this; }
|
{ this->swap(x); return *this; }
|
||||||
|
@@ -215,8 +215,15 @@ class list_impl
|
|||||||
this->insert(this->cend(), b, e);
|
this->insert(this->cend(), b, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! <b>Effects</b>: to-do
|
//! <b>Effects</b>: Constructs a container moving resources from another container.
|
||||||
|
//! Internal 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 value traits throws.
|
||||||
list_impl(BOOST_RV_REF(list_impl) x)
|
list_impl(BOOST_RV_REF(list_impl) x)
|
||||||
: data_(::boost::move(x.priv_value_traits()))
|
: data_(::boost::move(x.priv_value_traits()))
|
||||||
{
|
{
|
||||||
@@ -226,7 +233,7 @@ class list_impl
|
|||||||
this->swap(x);
|
this->swap(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! <b>Effects</b>: to-do
|
//! <b>Effects</b>: Equivalent to swap
|
||||||
//!
|
//!
|
||||||
list_impl& operator=(BOOST_RV_REF(list_impl) x)
|
list_impl& operator=(BOOST_RV_REF(list_impl) x)
|
||||||
{ this->swap(x); return *this; }
|
{ this->swap(x); return *this; }
|
||||||
|
@@ -338,8 +338,15 @@ class slist_impl
|
|||||||
this->insert_after(this->cbefore_begin(), b, e);
|
this->insert_after(this->cbefore_begin(), b, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! <b>Effects</b>: to-do
|
//! <b>Effects</b>: Constructs a container moving resources from another container.
|
||||||
|
//! Internal 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 value traits throws.
|
||||||
slist_impl(BOOST_RV_REF(slist_impl) x)
|
slist_impl(BOOST_RV_REF(slist_impl) x)
|
||||||
: data_(::boost::move(x.priv_value_traits()))
|
: data_(::boost::move(x.priv_value_traits()))
|
||||||
{
|
{
|
||||||
@@ -348,7 +355,7 @@ class slist_impl
|
|||||||
this->swap(x);
|
this->swap(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! <b>Effects</b>: to-do
|
//! <b>Effects</b>: Equivalent to swap
|
||||||
//!
|
//!
|
||||||
slist_impl& operator=(BOOST_RV_REF(slist_impl) x)
|
slist_impl& operator=(BOOST_RV_REF(slist_impl) x)
|
||||||
{ this->swap(x); return *this; }
|
{ this->swap(x); return *this; }
|
||||||
|
Reference in New Issue
Block a user