Closed Lastique closed 1 month ago
Turns out, there already is an option for deque
to specify block size.
The option is already there, it's called "block_size", but it wasn't properly documented in the reference. Fixed here:
https://github.com/boostorg/container/commit/8d179787482f389d9dc564273e81b651b4a4f088
deque_block_size
allows to customize the allocation block size for a given value type. But this affects anydeque
with this value type, and this may not be desired.It would be useful to have a template parameter in the
deque
template to be able to specify the block size (in the number of container elements) to be used for that container.