[ox/std] Make ~Vector constexpr
This commit is contained in:
parent
294c4547d0
commit
69b3245ba3
4
deps/ox/src/ox/std/vector.hpp
vendored
4
deps/ox/src/ox/std/vector.hpp
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user