An iterator to the beginning of the sequence container. If the list object is const-qualifie the function returns a const_iterator. Otherwise, it returns an iterator.
Beiträge - AutorenI need to browse the elements of my STL list. I know the iterator will need to be incremente but could anyone clarify what steps to take? How do I iterate through a list of numbers, and how many different. Unlike a lot of modern languages plain C++ arrays don't have a.
It would be an error to copy into an empty list or vector. These are not real C++ classes, but simply categories of kind of iterators. The C++ programmer iterates through an array by providing the index of each element.
The iterator returns an indication when it reaches the end of the list.
Keine Kommentare:
Kommentar veröffentlichen
Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.