summaryrefslogtreecommitdiff
path: root/boost/heap/priority_queue.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/heap/priority_queue.hpp')
-rw-r--r--boost/heap/priority_queue.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/boost/heap/priority_queue.hpp b/boost/heap/priority_queue.hpp
index 45f2151739..fe2470dc22 100644
--- a/boost/heap/priority_queue.hpp
+++ b/boost/heap/priority_queue.hpp
@@ -136,7 +136,7 @@ public:
*
* \b Note: Only available, if BOOST_NO_CXX11_RVALUE_REFERENCES is not defined
* */
- priority_queue(priority_queue && rhs):
+ priority_queue(priority_queue && rhs) BOOST_NOEXCEPT_IF(boost::is_nothrow_move_constructible<super_t>::value):
super_t(std::move(rhs)), q_(std::move(rhs.q_))
{}
@@ -147,7 +147,7 @@ public:
*
* \b Note: Only available, if BOOST_NO_CXX11_RVALUE_REFERENCES is not defined
* */
- priority_queue & operator=(priority_queue && rhs)
+ priority_queue & operator=(priority_queue && rhs) BOOST_NOEXCEPT_IF(boost::is_nothrow_move_assignable<super_t>::value)
{
super_t::operator=(std::move(rhs));
q_ = std::move(rhs.q_);
@@ -174,7 +174,7 @@ public:
* \b Complexity: Constant.
*
* */
- bool empty(void) const
+ bool empty(void) const BOOST_NOEXCEPT
{
return q_.empty();
}
@@ -185,7 +185,7 @@ public:
* \b Complexity: Constant.
*
* */
- size_type size(void) const
+ size_type size(void) const BOOST_NOEXCEPT
{
return q_.size();
}
@@ -196,7 +196,7 @@ public:
* \b Complexity: Constant.
*
* */
- size_type max_size(void) const
+ size_type max_size(void) const BOOST_NOEXCEPT
{
return q_.max_size();
}
@@ -207,7 +207,7 @@ public:
* \b Complexity: Linear.
*
* */
- void clear(void)
+ void clear(void) BOOST_NOEXCEPT
{
q_.clear();
}
@@ -281,7 +281,7 @@ public:
* \b Complexity: Constant.
*
* */
- void swap(priority_queue & rhs)
+ void swap(priority_queue & rhs) BOOST_NOEXCEPT_IF(boost::is_nothrow_move_constructible<super_t>::value && boost::is_nothrow_move_assignable<super_t>::value)
{
super_t::swap(rhs);
q_.swap(rhs.q_);
@@ -293,7 +293,7 @@ public:
* \b Complexity: Constant.
*
* */
- iterator begin(void) const
+ iterator begin(void) const BOOST_NOEXCEPT
{
return iterator(q_.begin());
}
@@ -304,7 +304,7 @@ public:
* \b Complexity: Constant.
*
* */
- iterator end(void) const
+ iterator end(void) const BOOST_NOEXCEPT
{
return iterator(q_.end());
}