Introduction to OOP: Chapter 16 : A Case Study : The STL [next] [previous] [audio] [real] [text]

Begin and End

By convention, containers return a starting value in response to begin(), and a past-the-end value in response to end().

For example, to shuffle a vector of values:

	random_shuffle
		(aVector.begin(), aVector.end(), randomInteger);
Intro OOP, Chapter 16, Slide 6