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

Use iterator_interface in base_view::iterator definition #64

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

oliverlee
Copy link
Collaborator

@oliverlee oliverlee commented Jun 16, 2023

Define huffman::detail::iterator_interface, a CRTP helper class to
synthesize boiler-plate operations necessary to model
std::random_access_iterator. This allows detail::base_view::iterator
to define only the necessary basis operations, as well simplifying the
implementation of bit_span::iterator in a future commit.

Change-Id: I8fe5c4b00a905d60621e84f5396df90668d307a5

@oliverlee oliverlee requested a review from garymm June 16, 2023 00:34
Copy link
Owner

@garymm garymm left a comment

Choose a reason for hiding this comment

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

Again feel free to merge it if you want, but I'm not sure it's worth all the complexity for a little syntax improvement in detail code.

@oliverlee oliverlee force-pushed the I8fe5c4b00a905d60621e84f5396df90668d307a5 branch 2 times, most recently from c6f4d00 to c979ec4 Compare June 16, 2023 04:06
@oliverlee oliverlee force-pushed the I2c9d14705bd5a0d8f7e562006913906d40c7fe86 branch from 52f27b3 to 555ae92 Compare June 26, 2023 00:16
@oliverlee oliverlee force-pushed the I8fe5c4b00a905d60621e84f5396df90668d307a5 branch from c979ec4 to b8faab5 Compare June 26, 2023 00:24
Base automatically changed from I2c9d14705bd5a0d8f7e562006913906d40c7fe86 to master June 26, 2023 00:26
Define `huffman::detail::iterator_interface`, a CRTP helper class to
synthesize boiler-plate operations necessary to model
`std::random_access_iterator`. This allows `detail::base_view::iterator`
to define only the necessary basis operations, as well simplifying the
implementation of `bit_span::iterator` in a future commit.

Change-Id: I8fe5c4b00a905d60621e84f5396df90668d307a5
@oliverlee oliverlee force-pushed the I8fe5c4b00a905d60621e84f5396df90668d307a5 branch from b8faab5 to 85e4576 Compare June 26, 2023 00:29
@oliverlee oliverlee requested a review from garymm June 26, 2023 00:29
@garymm garymm merged commit a495431 into master Jun 26, 2023
@garymm garymm deleted the I8fe5c4b00a905d60621e84f5396df90668d307a5 branch June 26, 2023 00:48
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.

2 participants