使用 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