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

[deque.overview] deque should not reference vector #719

Merged

Conversation

AlisdairM
Copy link
Contributor

Deque introduces itself in terms of vector, to describe the idea of
random access iterators. This is perhaps more confusing that simply
directing the reader to the clause for random access iterators. For
C++17 we introduce the category of contiguous iterators for vector,
array, and string, and we do not want to confuse the reader into bad
assumptions. Meanwhile, the notion of iterators is much more widely
understood than in 1998, so pointing directly to the appropriate
clause is more likely to help the reader than a potentially misleading analogy.

Deque introduces itself in terms of vector, to describe the idea of
random access iterators.  This is perhaps more confusing that simply
directing the reader to the clause for random access iterators.  For
C++17 we introduce the category of contiguous iterators for vector,
array, and string, and we do not want to confuse the reader into bad
assumptions.  Meanwhile, the notion of iterators is much more widely
understood than in 1998, so pointing directly to the appropriate
clause is more likely to help the reader than a potentially misleading analogy.
@jwakely jwakely merged commit a63198e into cplusplus:master May 3, 2016
@AlisdairM AlisdairM deleted the deque_should_not_reference_vector branch May 3, 2016 14:30
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

Successfully merging this pull request may close these issues.

None yet

2 participants