使用 Outer 分配器,分配内存。
pointer allocate(size_type count);
pointer allocate(size_type count, const_void_pointer hint);
参数
count
足够的存储将分配元素的数目。hint
可以通过查找对象的地址帮助分配器对象的某个请求之前分配。
返回值
第一个成员函数返回 Outer_traits::allocate(outer_allocator(), count)。第二个成员函数返回 Outer_traits::allocate(outer_allocator(), count, hint)。
要求
标头: <scoped_allocator>
命名空间: std