Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gblargg
12 months ago
|
parent
|
context
|
favorite
| on:
Improving on std:count_if()'s auto-vectorization
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.
tomn
12 months ago
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: