summaryrefslogtreecommitdiffstats
path: root/src/LazyArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LazyArray.h')
-rw-r--r--src/LazyArray.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/LazyArray.h b/src/LazyArray.h
index 310a1e2c6..dbb772585 100644
--- a/src/LazyArray.h
+++ b/src/LazyArray.h
@@ -21,7 +21,7 @@ public:
using iterator = pointer;
using const_iterator = const_pointer;
- cLazyArray(size_type a_Size) NOEXCEPT:
+ cLazyArray(size_type a_Size) noexcept:
m_Size{ a_Size }
{
ASSERT(a_Size > 0);
@@ -37,7 +37,7 @@ public:
}
}
- cLazyArray(cLazyArray && a_Other) NOEXCEPT:
+ cLazyArray(cLazyArray && a_Other) noexcept:
m_Array{ std::move(a_Other.m_Array) },
m_Size{ a_Other.m_Size }
{
@@ -49,7 +49,7 @@ public:
return *this;
}
- cLazyArray & operator = (cLazyArray && a_Other) NOEXCEPT
+ cLazyArray & operator = (cLazyArray && a_Other) noexcept
{
m_Array = std::move(a_Other.m_Array);
m_Size = a_Other.m_Size;
@@ -77,7 +77,7 @@ public:
iterator end() { return data() + m_Size; }
const_iterator end() const { return cend(); }
- size_type size() const NOEXCEPT { return m_Size; }
+ size_type size() const noexcept { return m_Size; }
const T * data() const
{
@@ -95,13 +95,13 @@ public:
return const_cast<T *>(const_this->data());
}
- void swap(cLazyArray & a_Other) NOEXCEPT
+ void swap(cLazyArray & a_Other) noexcept
{
std::swap(m_Array, a_Other.m_Array);
std::swap(m_Size, a_Other.m_Size);
}
- friend void swap(cLazyArray & a_Lhs, cLazyArray & a_Rhs) NOEXCEPT
+ friend void swap(cLazyArray & a_Lhs, cLazyArray & a_Rhs) noexcept
{
a_Lhs.swap(a_Rhs);
}
@@ -124,7 +124,7 @@ public:
}
/** Returns true if the array has already been allocated. */
- bool IsStorageAllocated() const NOEXCEPT { return (m_Array != nullptr); }
+ bool IsStorageAllocated() const noexcept { return (m_Array != nullptr); }
private:
// Mutable so const data() can allocate the array