Browse Source

base: Array::Pop() returns the popped element.

legacy
Sam Hocevar sam 11 years ago
parent
commit
bc623a4ef1
1 changed files with 3 additions and 1 deletions
  1. +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)


Loading…
Cancel
Save