在c ++ 17之前,如果您有类似的分配器,则Allocator<typename, size_t>可以使用rebind结构。但是现在,在C ++ 17中,不推荐使用rebind结构。从中构造an的解决方案allocator<T,size_t>是allocator<T2, size_t>什么?
Allocator<typename, size_t>
allocator<T,size_t>
allocator<T2, size_t>
c++ allocator
allocator ×1
c++ ×1