std::vector

std::vector
in C++ is the class template that contains the vector container and its member functions. It is defined inside the <vector> header file.

Some commonly used member functions are written below:

• begin() – Returns an iterator pointing to the first element in the vector
• end() – Returns an iterator pointing to the theoretical element that follows the last element in the vector. 
• rbegin() – Returns a reverse iterator pointing to the last element in the vector (reverse beginning). It moves from last to first element
• rend() – Returns a reverse iterator pointing to the theoretical element preceding the first element in the vector (considered as reverse end)

#30DaysOFCreative 

Popular posts from this blog

C++ Tools

Introduction to C++

C++ basics