Core/Bitset: Mark swap as noexcept
This commit is contained in:
parent
07f20e1893
commit
a982215ab7
|
|
@ -76,7 +76,7 @@ namespace Nz
|
||||||
void ShiftLeft(std::size_t pos);
|
void ShiftLeft(std::size_t pos);
|
||||||
void ShiftRight(std::size_t pos);
|
void ShiftRight(std::size_t pos);
|
||||||
|
|
||||||
void Swap(Bitset& bitset);
|
void Swap(Bitset& bitset) noexcept;
|
||||||
|
|
||||||
bool Test(std::size_t bit) const;
|
bool Test(std::size_t bit) const;
|
||||||
bool TestAll() const;
|
bool TestAll() const;
|
||||||
|
|
@ -199,7 +199,7 @@ namespace Nz
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
void swap(Nz::Bitset<Block, Allocator>& lhs, Nz::Bitset<Block, Allocator>& rhs);
|
void swap(Nz::Bitset<Block, Allocator>& lhs, Nz::Bitset<Block, Allocator>& rhs) noexcept;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <Nazara/Core/Bitset.inl>
|
#include <Nazara/Core/Bitset.inl>
|
||||||
|
|
|
||||||
|
|
@ -776,7 +776,7 @@ namespace Nz
|
||||||
* \param bitset Other bitset to swap
|
* \param bitset Other bitset to swap
|
||||||
*/
|
*/
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
void Bitset<Block, Allocator>::Swap(Bitset& bitset)
|
void Bitset<Block, Allocator>::Swap(Bitset& bitset) noexcept
|
||||||
{
|
{
|
||||||
std::swap(m_bitCount, bitset.m_bitCount);
|
std::swap(m_bitCount, bitset.m_bitCount);
|
||||||
std::swap(m_blocks, bitset.m_blocks);
|
std::swap(m_blocks, bitset.m_blocks);
|
||||||
|
|
@ -1645,7 +1645,7 @@ namespace std
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
void swap(Nz::Bitset<Block, Allocator>& lhs, Nz::Bitset<Block, Allocator>& rhs)
|
void swap(Nz::Bitset<Block, Allocator>& lhs, Nz::Bitset<Block, Allocator>& rhs) noexcept
|
||||||
{
|
{
|
||||||
lhs.Swap(rhs);
|
lhs.Swap(rhs);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue