本文介绍了这个分配器如何工作以及我们如何指定分配器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
模板<
class T,
class Allocator = std :: allocator< T>
> class vector;
我尝试过:
我在google上搜索过但我没有得到任何具体答案。
解决方案
template< class T, class Allocator = std::allocator<T> > class vector;
What I have tried:
I have searched on google but I have not got any specific answer.
解决方案
这篇关于这个分配器如何工作以及我们如何指定分配器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!