mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
Update gnustl.hpp
This commit is contained in:
parent
3ba1ad12ff
commit
202b60edd6
1 changed files with 8 additions and 0 deletions
|
@ -330,6 +330,14 @@ namespace gd {
|
|||
m_capacity_end = m_start + input.size();
|
||||
std::copy(input.begin(), input.end(), tmp);
|
||||
}
|
||||
|
||||
void clear() {
|
||||
delete[] m_start;
|
||||
auto tmp = new T[0];
|
||||
m_start = tmp;
|
||||
m_finish = m_start;
|
||||
m_capacity_end = m_start;
|
||||
}
|
||||
|
||||
T& front() {
|
||||
return *m_start;
|
||||
|
|
Loading…
Add table
Reference in a new issue