Just a little correction... it's not std::ranges::unreachable_sentinel_t (or rgn::unreachable_sentinel_t as in the slide) it's std::unreachable_sentinel_t
@TheMR-7772 жыл бұрын
Oh man it's awesome! I was trying to implement the same (fibonacci_view), and was trying to use the “view_interface”, which made me struggle a lot. But failed at the end. But now I came to know, (says calmly) “it was so simple!” Thank you so much Mr. Brindle for teaching the adapters, to have our own “views”. And, Thanks a lot to CppCon as well!
@CppCon2 жыл бұрын
Glad it helped!
@kanghewill40692 жыл бұрын
36:19 "What we can't do is call find_if_not and pass std::views::reverse(base_) directly as the first argument..." P2017 should have solved this issue, right?
@tcbrindle2 жыл бұрын
Ah, I’d forgotten about that change! Yes, I believe you’re correct, apologies for the error 🙂
@ferifezino5346 Жыл бұрын
An amazing Teacher. I need to watch all his talks.
@arthurs42406 ай бұрын
Great presentation so far! But it looks like we went from 15 lines of 40 lines of code on the exchange example (with the iterator boiler plate). Also the complexity of having to understand cpp20 features + iterators concept.
@foragerdev2 жыл бұрын
I was waiting for such a good talk on ranges. Really enjoyed.
@CppCon2 жыл бұрын
Glad to hear!
@VioletGiraffe2 жыл бұрын
std::exchange is super confusing, it does too many things at once. It smells!
@arkadymagomedov1700 Жыл бұрын
Failed to implement the last example. The rotate seemingly has no effect... Any chance we could get the sources?
@AbamaCai7 ай бұрын
Very nice talk, please show your code in git link, We can try play with it.
@דניאלאביב-ו6ת13 күн бұрын
great talk!
@ayush.kumar.139072 жыл бұрын
is there going to be something about functional programming with C++ in this CppCon?
@graham12345dd Жыл бұрын
Time 17.34 in video, couldn't you have used exchange there (you informed us (me!) of it at beginning of video. Would work nicely here, no?
@antoniocs88732 жыл бұрын
So is there like a quick recap of all the previous talks from the author? Ranges do seem complicated
@TheMR-7772 жыл бұрын
Implementation of Adapters do seem complicated, but their usage, feels like absolute POWER!
@mapron12 жыл бұрын
Last example - i think that original version is probably more efficient in terms of speed (but not memory), as we have better memory locality.