Re:Show HN: Array with Constant Time Access and Fast Inserti...
by igushev on Tuesday September 03, 2019 @09:25PM
(#20873126)
DEQs also allocate internal arrays with hardcoded size only (8 in std, if I remember correctly)
Re:Show HN: Array with Constant Time Access and Fast Inserti...
by asdfasgasdgasdg on Tuesday September 03, 2019 @10:34PM
(#20873469)
At least in libc++ it's the greater of 4kB or 16 * sizeof(value_type). That's the default, it is configurable. 8 would be a pretty unfortunate design choice.
Interesting!