C++ Vector cbegin() This function is used to point the first element of the vector container. cbegin() vs begin() The cbegin() function…
end()
-
-
C++ Vector cend() This function is used to point to the past-the-last element (element after the last element) in the vector. cend()…
-
C++ Vector clear() This function removes all the elements from the vector. Syntax Consider a vector v. Syntax would be: v.clear(); Parameter…
-
C++ Vector rbegin() The rbegin() stands for ‘reverse beginning’ and is used to point the last element of the vector. Syntax Consider…
-
C++ Vector crbegin() The crbegin() function stands for reverse beginning. It is used to point the last character of the vector container.…
-
C++ Vector rend() The rend() function stands for ‘reverse end’ and is used to point the element preceding the first element of…
-
C++ Vector crend() This function is used to point the element preceding the first element in the vector container. Itrefers as reverse…
-
C++ Vector data() This function returns a pointer to an array internally used by a vector to store its elements. Syntax Consider…
-
C++ Vector shrink_to_fit() This function is used to change the capacity of the vector and makes it equal to the size of…
-
C++ emplace_back() This function is used to insert new element at the end of the vector and increases the size of the…