Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用自定义分配器进行std::vector内部分配?如果是,如何?
std::vector
您基本上必须实现分配器类型以符合分配器概念。
链接页面列出了该类型的所有需求,但核心功能在allocate成员函数中实现。
allocate