forked from Bananymous/banan-os
BAN: Add data() to Vector.
This allows you to access the underlying data in a vector
This commit is contained in:
parent
460fc3a29f
commit
7f12a7050a
|
@ -49,6 +49,9 @@ namespace BAN
|
||||||
void remove(size_type);
|
void remove(size_type);
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
|
T* data() { return m_data; }
|
||||||
|
const T* data() const { return m_data; }
|
||||||
|
|
||||||
bool contains(const T&) const;
|
bool contains(const T&) const;
|
||||||
|
|
||||||
const T& operator[](size_type) const;
|
const T& operator[](size_type) const;
|
||||||
|
|
Loading…
Reference in New Issue