[ox/std] Add pop_back to Vector

This commit is contained in:
Gary Talent 2019-03-02 22:10:12 -06:00
parent 21f5a34b75
commit 564ca7511c

View File

@ -49,6 +49,8 @@ class Vector {
void push_back(const T &item) noexcept;
void pop_back() noexcept;
/**
* Removes an item from the Vector.
* @param pos position of item to remove
@ -177,6 +179,11 @@ void Vector<T>::push_back(const T &item) noexcept {
++m_size;
}
template<typename T>
void Vector<T>::pop_back() noexcept {
--m_size;
}
template<typename T>
void Vector<T>::erase(std::size_t pos) noexcept {
m_size--;