The difference vector size () and capacity () of

  • size () (Size) refers to the number of currently owned container element;
  • Capacity () (capacity) means the total number of container storage space must be allocated before the element can be stored;

Guess you like

Origin www.cnblogs.com/dingou/p/11627501.html