Closed tobias-loew closed 5 years ago
Thanks for the report. I've added options to small_vector with the same philosophy as vector/deque/static_vector options. small_vector now can receive two options:
inplace_alignment: similar to your proposal, the alignment for the inplace storage can be proposed. growth_factor: the growth factor for the dynamic allocation, the same option that can be specified in vector.
Many thanks for the proposal.
Hi, in order to be able to use small_vectors for SSE aligned doubles, I've added an alignment specification for small_vector which ensures alignment of the internal-storage. The default value of 0 for the new template parameter ensures the original alignment-calculation.
Tobias