mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-12 21:14:41 -04:00
add gd::vector::clear on mac
This commit is contained in:
parent
cae4728ac0
commit
d6b42f2a0b
1 changed files with 5 additions and 0 deletions
|
@ -314,6 +314,11 @@ namespace gd {
|
|||
std::copy(input.begin(), input.end(), tmp);
|
||||
}
|
||||
|
||||
void clear() {
|
||||
delete[] m_start;
|
||||
m_finish = m_start;
|
||||
}
|
||||
|
||||
T& front() {
|
||||
return *m_start;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue