ADSP: Algorithms + Data Structures = Programs cover image

Episode 0: Our Favorite Algorithms

ADSP: Algorithms + Data Structures = Programs

00:00

C++ 17

C++ 20 introduced ranges, which is a more powerful idiom for composing algorithms. One of the reasons that we introduced string view into C ++ 17 was to allow you to write an algorithm like this more efficiently. But there's kind of a little bit of a problem with split view. The issue is what type of iterators that sequence of sequence gives you. And so instead of returning a string view, you can return a vector of string views or perhaps even something better than a vector.

Play episode from 17:00
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app