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: add Array::Data() method to access the underlying buffer.
undefined
Sam Hocevar
11 years ago
parent
42381d33a4
commit
231b99714f
1 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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];
}
inline Element *Data()
{
return m_data;
}
inline Element const *Data() const
{
return m_data;
}
inline Element const& Last() const
{
ASSERT(m_count > 0);
Write
Preview
Loading…
Cancel
Save