[ox/std] Add pop_back to Vector
This commit is contained in:
parent
21f5a34b75
commit
564ca7511c
7
deps/ox/src/ox/std/vector.hpp
vendored
7
deps/ox/src/ox/std/vector.hpp
vendored
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user