Skip to content

Conversation

aharrison24
Copy link
Contributor

@aharrison24 aharrison24 commented Oct 1, 2021

tidy iterator category section in chapter 9

  • Flesh out the text a bit, based on the original lecture.
  • Add a note about tag dispatch and link an article which compares
    and contrasts tag dispatch with the C++20 concepts approach.
  • Adjust the iterator struct in the code block, so that it is
    indented with respect to the (commented) outer class.

Source lecture:
https://youtu.be/84gHZgPCf1s?t=2160

- Flesh out the text a bit, based on the original lecture. - Add a note about tag dispatch and linked an article which compares and contrasts tag dispatch with the C++20 concepts approach. - Adjust the iterator struct in the code block, so that it is indented with respect to the (commented) outer class. Source lecture: https://youtu.be/84gHZgPCf1s?t=2160
@aharrison24 aharrison24 force-pushed the chapter9-iterator-categories branch from 59b4643 to 8cd5e3f Compare October 1, 2021 23:21
`InputIterators`, etc...

In C++ (without concepts) we use tag types to designate the iterator categories.
Every iterator uses a tag type to signify which theory it supports.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Every iterator uses a tag type to signify which theory it supports.
Every iterator uses a tag type to denote which theory it supports.
@justinmeiners justinmeiners merged commit 1f82295 into justinmeiners:master Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants