mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Add clear() function alias
This commit is contained in:
@@ -136,6 +136,7 @@ struct array
|
||||
|
||||
// provide some of the familiar stl interface
|
||||
size_t size() const { return (size_t)count; }
|
||||
void clear() { Delete(); }
|
||||
bool empty() const { return count == 0; }
|
||||
T *begin() { return elems ? elems : end(); }
|
||||
T *end() { return elems ? elems + count : NULL; }
|
||||
|
||||
Reference in New Issue
Block a user