Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.9: The begin (and end) functions do not always return a (non-const) iterator type. #32

Open
xjay73 opened this issue Jun 26, 2021 · 0 comments

Comments

@xjay73
Copy link

xjay73 commented Jun 26, 2021

The type returned by begin and end depends on the const-ness of the object calling it. If the calling object is const, then begin/end will return a const_iterator. If the calling object is not const, then begin/end will return a (non-const) iterator.

(Your answer for exercise 9.10 reflects this correctly, but it is not made clear in the answer for this exercise.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant