Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 519 Bytes

rbegin.md

File metadata and controls

15 lines (13 loc) · 519 Bytes

rbegin

Description :

  • Returns a reverse iterator pointing to the last element in the vector (i.e., its reverse beginning).
  • Reverse iterators iterate backwards: increasing them moves them towards the beginning of the container.

Example:

	// Iterate backwards over myVector using reverse iterators
	for (auto it = myVector.rbegin(); it != myVector.rend(); it++) {
		std::cout << *it << " ";
	}

See Sample code Run Code