Conquering C++20 Ranges - Tristan Brindle - CppCon 2021

  Рет қаралды 17,408

CppCon

CppCon

Күн бұрын

Пікірлер: 20
@Bbdu75yg
@Bbdu75yg 2 жыл бұрын
Brilliant! 👌 👏 😍 👍!
@CppCon
@CppCon Жыл бұрын
Thank you!
@RichardNatal
@RichardNatal Жыл бұрын
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-777
@TheMR-777 2 жыл бұрын
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!
@CppCon
@CppCon 2 жыл бұрын
Glad it helped!
@kanghewill4069
@kanghewill4069 2 жыл бұрын
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?
@tcbrindle
@tcbrindle 2 жыл бұрын
Ah, I’d forgotten about that change! Yes, I believe you’re correct, apologies for the error 🙂
@ferifezino5346
@ferifezino5346 Жыл бұрын
An amazing Teacher. I need to watch all his talks.
@arthurs4240
@arthurs4240 6 ай бұрын
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.
@foragerdev
@foragerdev 2 жыл бұрын
I was waiting for such a good talk on ranges. Really enjoyed.
@CppCon
@CppCon 2 жыл бұрын
Glad to hear!
@VioletGiraffe
@VioletGiraffe 2 жыл бұрын
std::exchange is super confusing, it does too many things at once. It smells!
@arkadymagomedov1700
@arkadymagomedov1700 Жыл бұрын
Failed to implement the last example. The rotate seemingly has no effect... Any chance we could get the sources?
@AbamaCai
@AbamaCai 7 ай бұрын
Very nice talk, please show your code in git link, We can try play with it.
@דניאלאביב-ו6ת
@דניאלאביב-ו6ת 13 күн бұрын
great talk!
@ayush.kumar.13907
@ayush.kumar.13907 2 жыл бұрын
is there going to be something about functional programming with C++ in this CppCon?
@graham12345dd
@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?
@antoniocs8873
@antoniocs8873 2 жыл бұрын
So is there like a quick recap of all the previous talks from the author? Ranges do seem complicated
@TheMR-777
@TheMR-777 2 жыл бұрын
Implementation of Adapters do seem complicated, but their usage, feels like absolute POWER!
@mapron1
@mapron1 2 жыл бұрын
Last example - i think that original version is probably more efficient in terms of speed (but not memory), as we have better memory locality.
Back to Basics: Lambdas - Nicolai Josuttis - CppCon 2021
1:05:21
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 5 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
C++ Coroutines, from Scratch - Phil Nash - CppCon 2022
59:22
Better C++ ranges - Arno Schödl - Meeting C++ 2023
1:04:59
Meeting Cpp
Рет қаралды 1,9 М.