Jump to content

C++ Language/Std/Stl/Iterators/Ranges

From Wikibooks, open books for an open world

Often, a client uses parameters to specify a range of items to a STL algorithm. The convention is that the range's beginning is always inclusive, and its ending is always exclusive. To specify a range that involves all items, program as find(veciVar.begin(), veciVar.end(), 11);

Additional information about ranges of iterators