Hacker News new | ask | show | jobs
by gblargg 465 days ago
I was hoping you could just provide an iterator_traits with a uint8_t difference type, but this is tied to the iterator type rather than specified separately, so you'd need some kind of iterator wrapper to do this.
1 comments

Yeah, I thought about that too, but if you want to process more than 255 values this might not be valid, depending on the implementation of count_if.