[ox/std] Make ~Vector constexpr

This commit is contained in:
Gary Talent 2022-02-23 23:36:28 -06:00
parent 294c4547d0
commit 69b3245ba3

View File

@ -233,7 +233,7 @@ class Vector: detail::VectorAllocator<T, SmallVectorSize> {
constexpr Vector(Vector &&other) noexcept;
~Vector();
constexpr ~Vector();
constexpr iterator<> begin() noexcept {
return iterator<>(m_items, 0, m_size);
@ -421,7 +421,7 @@ constexpr Vector<T, SmallVectorSize>::Vector(Vector &&other) noexcept {
}
template<typename T, std::size_t SmallVectorSize>
Vector<T, SmallVectorSize>::~Vector() {
constexpr Vector<T, SmallVectorSize>::~Vector() {
clear();
this->deallocate(m_items, m_cap);
m_items = nullptr;