mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Bound check improvement
This commit is contained in:
parent
a31d3e60d8
commit
ff761ea4e6
@ -53,7 +53,7 @@ public:
|
||||
accelerator_inline void clear(void) { resize(0);}
|
||||
accelerator_inline void resize(size_type sz) {
|
||||
assert(sz>=0);
|
||||
assert(sz<MaxEntries);
|
||||
assert(sz<=MaxEntries);
|
||||
_size = sz;
|
||||
}
|
||||
accelerator_inline void resize(size_type sz,const value &val) {
|
||||
|
Loading…
Reference in New Issue
Block a user