Browse Source

base: add Array::Data() method to access the underlying buffer.

undefined
Sam Hocevar 11 years ago
parent
commit
231b99714f
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/lol/base/array.h

+ 10
- 0
src/lol/base/array.h View File

@@ -136,6 +136,16 @@ public:
return m_data[m_count - 1]; return m_data[m_count - 1];
} }


inline Element *Data()
{
return m_data;
}

inline Element const *Data() const
{
return m_data;
}

inline Element const& Last() const inline Element const& Last() const
{ {
ASSERT(m_count > 0); ASSERT(m_count > 0);


Loading…
Cancel
Save