Summary of common C++STL

Summary of common C++STL 1, vector, variable length array, multiplication idea size() returns the number of elements empty() returns whether it is empty front()/back() returns the head or tail of the array push_back() insert element at tail pop_ Delete element at the end of back() Iterator: begin()/end() Support random addressing: [] Support ...

Posted by MrAdam on Thu, 07 Oct 2021 20:56:45 +0200