Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

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