![]() |
Spicy
|
#include <vector.h>
Classes | |
struct | rebind |
Public Types | |
using | value_type = T |
Allocator for Vector
that initializes elements with a given default value.
See https://howardhinnant.github.io/allocator_boilerplate.html and https://stackoverflow.com/questions/48061522/create-the-simplest-allocator-with-two-template-arguments
We allow defaults with types differing from the allocated type (but implicitly convertible to it) to support allocators over non-basic types, see e.g., https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1907r1.html.