Which allocator member function do standard containers use to acquire
storage for their elements in C++?
A. std::allocator<>::make(size_t)
B. std::allocator<>::new(size_t)
C. std::allocator<>::malloc(int)
D. std::allocator<>::allocate(size_t)
E. std::allocator<>::acquire(size_t)
我只知道D,allocate是allocator 的member function.
多谢
【在 D******4 的大作中提到】 : Which allocator member function do standard containers use to acquire : storage for their elements in C++? : A. std::allocator<>::make(size_t) : B. std::allocator<>::new(size_t) : C. std::allocator<>::malloc(int) : D. std::allocator<>::allocate(size_t) : E. std::allocator<>::acquire(size_t) : 我只知道D,allocate是allocator 的member function. : 多谢