Add util::flat_list::begin/end
This commit is contained in:
parent
15f8e04308
commit
82a81c4c77
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ namespace psemek::util
|
||||||
return reinterpret_cast<T *>(nodes_.get());
|
return reinterpret_cast<T *>(nodes_.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T * begin() { return data(); }
|
||||||
|
T const * begin() const { return data(); }
|
||||||
|
|
||||||
|
T * end() { return begin() + capacity(); }
|
||||||
|
T const * end() const { return begin() + capacity(); }
|
||||||
|
|
||||||
void reserve(std::size_t size);
|
void reserve(std::size_t size);
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue