wip
This commit is contained in:
parent
e1268d1eba
commit
45878e32a6
@ -26,7 +26,7 @@ struct ConcurrentIDMap
|
|||||||
mutable UpgradableMutex mutex;
|
mutable UpgradableMutex mutex;
|
||||||
|
|
||||||
ConcurrentIDMap() = default;
|
ConcurrentIDMap() = default;
|
||||||
ConcurrentIDMap(ConcurrentIDMap &&other)
|
ConcurrentIDMap(ConcurrentIDMap &&other) noexcept
|
||||||
{
|
{
|
||||||
if (this != &other)
|
if (this != &other)
|
||||||
{
|
{
|
||||||
@ -36,7 +36,7 @@ struct ConcurrentIDMap
|
|||||||
data = std::move(other.data);
|
data = std::move(other.data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ConcurrentIDMap &operator=(ConcurrentIDMap &&other)
|
ConcurrentIDMap &operator=(ConcurrentIDMap &&other) noexcept
|
||||||
{
|
{
|
||||||
if (this != &other)
|
if (this != &other)
|
||||||
{
|
{
|
||||||
|
@ -204,8 +204,8 @@ template <typename ElementT> class DeallocatingVector
|
|||||||
}
|
}
|
||||||
|
|
||||||
// moving is fine
|
// moving is fine
|
||||||
DeallocatingVector(DeallocatingVector &&other) { swap(other); }
|
DeallocatingVector(DeallocatingVector &&other) noexcept { swap(other); }
|
||||||
DeallocatingVector &operator=(DeallocatingVector &&other)
|
DeallocatingVector &operator=(DeallocatingVector &&other) noexcept
|
||||||
{
|
{
|
||||||
swap(other);
|
swap(other);
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
Reference in New Issue
Block a user