add begin(), end() to util::stack_vector
This commit is contained in:
parent
3e59b186d3
commit
01181b6403
@ -94,6 +94,22 @@ namespace util {
|
|||||||
bool full() const {
|
bool full() const {
|
||||||
return size_ == capacity;
|
return size_ == capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto begin() {
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto end() {
|
||||||
|
return data_ + size_;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto begin() const {
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto end() const {
|
||||||
|
return data_ + size_;
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
T data_[capacity];
|
T data_[capacity];
|
||||||
int size_;
|
int size_;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user