【C++ Primer 第9章】顺序容器

 向顺序容器添加元素

push_back()   不支持array forward_list
push_front()  不支持string vector

vector string list forward_list都支持insert成员
c.insert(p, t);
c.insert(p, n, t);
c.insert(p, b, e);
c.insert(p, il);

  

猜你喜欢

转载自www.cnblogs.com/sunbines/p/9269126.html