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) · 559 Bytes

rend.md

File metadata and controls

15 lines (13 loc) · 559 Bytes

rend

Description :

  • Returns a reverse iterator pointing to the theoretical element preceding the first element in the vector (which is considered its reverse end).
  • 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