Ignore:
Timestamp:
Jun 24, 2013, 12:53:29 AM (6 years ago)
Author:
sam
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/base/array.h

    r2435 r2780  
    163163    }
    164164
    165     inline void Pop()
     165    inline T Pop()
    166166    {
    167167        ASSERT(m_count > 0);
     168        Element tmp = Last();
    168169        Remove(m_count - 1, 1);
     170        return tmp;
    169171    }
    170172
Note: See TracChangeset for help on using the changeset viewer.