[Solved] In this C++ code, what element of the list does the iterator refer to? [closed]


It is well documented in the manual.

An iterator that points to the first of the newly inserted elements.

In you case new_foo_it after listOfFoos.insert of a single element, points to the last element of the list, it points newFoo.

1

solved In this C++ code, what element of the list does the iterator refer to? [closed]