mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Make the swap() functions noexcept
This commit is contained in:
@@ -146,7 +146,7 @@ public:
|
||||
<a href=
|
||||
"#move-cons">dynamic_bitset</a>(dynamic_bitset&& b);
|
||||
|
||||
void <a href="#swap">swap</a>(dynamic_bitset& b);
|
||||
void <a href="#swap">swap</a>(dynamic_bitset& b) noexcept;
|
||||
|
||||
dynamic_bitset& <a href=
|
||||
"#assign">operator=</a>(const dynamic_bitset& b);
|
||||
@@ -757,7 +757,7 @@ and destroys the bitset object itself.<br />
|
||||
|
||||
<hr />
|
||||
<pre>
|
||||
void <a id="swap">swap</a>(dynamic_bitset& b);
|
||||
void <a id="swap">swap</a>(dynamic_bitset& b) noexcept;
|
||||
</pre>
|
||||
|
||||
<b>Effects:</b> The contents of this bitset and bitset <tt>b</tt>
|
||||
|
||||
@@ -186,7 +186,7 @@ public:
|
||||
|
||||
~dynamic_bitset();
|
||||
|
||||
void swap(dynamic_bitset& b);
|
||||
void swap(dynamic_bitset& b) BOOST_NOEXCEPT;
|
||||
dynamic_bitset& operator=(const dynamic_bitset& b);
|
||||
|
||||
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||
@@ -614,7 +614,7 @@ operator-(const dynamic_bitset<Block, Allocator>& b1,
|
||||
// namespace scope swap
|
||||
template<typename Block, typename Allocator>
|
||||
void swap(dynamic_bitset<Block, Allocator>& b1,
|
||||
dynamic_bitset<Block, Allocator>& b2);
|
||||
dynamic_bitset<Block, Allocator>& b2) BOOST_NOEXCEPT;
|
||||
|
||||
|
||||
template <typename Block, typename Allocator, typename stringT>
|
||||
@@ -677,7 +677,7 @@ inline dynamic_bitset<Block, Allocator>::
|
||||
|
||||
template <typename Block, typename Allocator>
|
||||
inline void dynamic_bitset<Block, Allocator>::
|
||||
swap(dynamic_bitset<Block, Allocator>& b) // no throw
|
||||
swap(dynamic_bitset<Block, Allocator>& b) BOOST_NOEXCEPT
|
||||
{
|
||||
std::swap(m_bits, b.m_bits);
|
||||
std::swap(m_num_bits, b.m_num_bits);
|
||||
@@ -1782,7 +1782,7 @@ operator-(const dynamic_bitset<Block, Allocator>& x,
|
||||
template<typename Block, typename Allocator>
|
||||
inline void
|
||||
swap(dynamic_bitset<Block, Allocator>& left,
|
||||
dynamic_bitset<Block, Allocator>& right) // no throw
|
||||
dynamic_bitset<Block, Allocator>& right) BOOST_NOEXCEPT
|
||||
{
|
||||
left.swap(right);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user