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
base: Array::Pop() returns the popped element.
legacy
Sam Hocevar
sam
11 years ago
parent
8ff1cf9b32
commit
bc623a4ef1
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
src/lol/base/array.h
+ 3
- 1
src/lol/base/array.h
View File
@@ -162,10 +162,12 @@ public:
*this << x;
}
inline
void
Pop()
inline
T
Pop()
{
ASSERT(m_count > 0);
Element tmp = Last();
Remove(m_count - 1, 1);
return tmp;
}
void Swap(int pos1, int pos2)
Write
Preview
Loading…
Cancel
Save