#include<iostream>
#include<string>
#include<vector>
#include<memory>
using namespace std;
int *p = new int[10];//两种用new的方法
typedef int arrT[42];
int *q =new arrT;
delete []p;
allocator<string> number;//定义一个名为number的allocator对象,可以为类型为int的对象分配内存
auto m = number.allocate(10);
auto n = m;
number.construct(n++, 10, 'c');
number.destroy(n);