看着
vector,我意识到,在创建向量时,我从来没有使用过第二个参数.
std::vector<int> myInts; // this is what I usually do std::vector<int,???> myOtherInts; // but is there a second argument there?
看看上面的链接,它表示它是:
@H_502_6@Allocator object to be used instead of constructing a new one.
或者,至于this one:
@H_502_6@Allocator: Type of the allocator object used to define the storage allocation model. By default,the allocator class template for type T is used,which defines the simplest memory allocation model and is value-independent.
我想这与内存管理有关.但是,我不知道如何使用它.
任何关于这个的指针?