Container constructorscreate vectors and initialize them with some dataContainer operatorscompare, assign, and access elements of a vectorassignassign elements to a vectoratreturns an element at a specific locationbackreturns a reference to last element of a vectorbeginreturns an iterator to the beginning of the vectorcapacityreturns the number of elements that the vector can holdclearremoves all elements from the vectoremptytrue if the vector has no elementsendreturns an iterator just past the last element of a vectoreraseremoves elements from a vectorfrontreturns a reference to the first element of a vectorinsertinserts elements into the vectormax_sizereturns the maximum number of elements that the vector can holdpop_backremoves the last element of a vectorpush_backadd an element to the end of the vectorrbeginreturns a reverse_iterator to the end of the vectorrendreturns a reverse_iterator to the beginning of the vectorreservesets the minimum capacity of the vectorresizechange the size of the vectorsizereturns the number of items in the vectorswapswap the contents of this vector with another
转载请注明原文地址: https://ibbs.8miu.com/read-31509.html