Algorithms + Data Structures = Programs cover image

Episode 123: An Algorithm Taxonomy

Algorithms + Data Structures = Programs

00:00

How to Use a Range Adapter in a Sentinel

A range is basically just a pair of iterators or an iterator in a Sentinel. If you dereference it, I assume ititerates through the range until it finds a value that returns true for the evaluation of the unary predicate that was passed to the user. That is lazily evaluated. So it itself until you perform some kind of reduction or take or collecting operation does nothing. And like what happens when we dereference? Okay, I was going to say like just calling and assigning the result of,. you know, range.begin does nothing. But let's talk about what happens if we call it again on this range. We get back an iteration. What does thatIterator do

Transcript
Play full episode

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