This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
core: Append() was missing for arrays of single element structs.
legacy
Sam Hocevar
sam
12 years ago
parent
f1c0e3ba4e
commit
56d7f24a37
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/array.h
+ 5
- 0
src/array.h
View File
@@ -225,6 +225,11 @@ public:
return *this;
}
inline void Append(T1 const &x)
{
*this += x;
}
void Remove(int pos)
{
memmove(m_data + pos, m_data + pos + 1, m_count - pos - 1);
Write
Preview
Loading…
Cancel
Save