mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-24 03:39:56 -04:00
gnustl std::vector<bool>::at
This commit is contained in:
parent
0577cd057e
commit
ff8de703ab
1 changed files with 10 additions and 0 deletions
|
@ -638,6 +638,16 @@ namespace gd {
|
|||
bool operator[](size_t index) const {
|
||||
return const_cast<vector&>(*this)[index];
|
||||
}
|
||||
|
||||
_bit_reference at(size_t index) {
|
||||
// TODO: bounds checking
|
||||
return this->operator[](index);
|
||||
}
|
||||
|
||||
bool at(size_t index) const {
|
||||
// TODO: bounds checking
|
||||
return this->operator[](index);
|
||||
}
|
||||
};
|
||||
|
||||
// 2.2 TODO: Implement set, unordered_map and unordered_set
|
||||
|
|
Loading…
Add table
Reference in a new issue