> Markdown version of [/videos/1045-why-iterators-got-it-all-wrong-and-what-we-should-use-instead?t=66](https://www.wearedevelopers.com/videos/1045-why-iterators-got-it-all-wrong-and-what-we-should-use-instead?t=66). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Why Iterators Got It All Wrong — and what we should use instead An analysis of a million lines of code reveals a fundamental flaw: C++ iterators conflate elements and borders. Discover how strict semantic separation eliminates ambiguity in modern ranges. - **Speakers:** [Arno Schoedl](https://www.wearedevelopers.com/@arno-schoedl) - **Event:** World Congress 2024 - **Published:** August 20, 2024 - **Duration:** 26:12 - **URL:** https://www.wearedevelopers.com/videos/1045-why-iterators-got-it-all-wrong-and-what-we-should-use-instead - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/6d0874950ec671d84de26cab493d9b6a/thumbnails/thumbnail.jpg?time=68355ms ## Access Playback and chapters for this video are available with a Free account. ## Related Moments - [Permitting variable references and unsafe code in iterators](https://www.wearedevelopers.com/videos/1225-c-13-unleashed-live-demos-of-my-top-10-cutting-edge-features) (from "C# 13 Unleashed: Live Demos of my Top 10 Cutting-Edge Features!") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/cbe4b7cb58271f30d930f86a7374ae54/thumbnails/thumbnail.jpg?time=189385ms - [Filtering and transforming ranges with lazy evaluation views](https://www.wearedevelopers.com/videos/1409-functional-programming-in-c) (from "Functional Programming in C++") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/c0908c6a1fa784d6af163ad5deb81982/thumbnails/thumbnail.jpg?time=13395ms - [Overriding loops with ranges and stepping](https://www.wearedevelopers.com/videos/512-route-from-java-to-kotlin) (from "Route from Java to Kotlin") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/e92220aa310d585b0b1fa4778d0b20fc/thumbnails/thumbnail.jpg?time=186300ms - [Summarizing range composition patterns and standard library algorithms](https://www.wearedevelopers.com/videos/1409-functional-programming-in-c) (from "Functional Programming in C++") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/c0908c6a1fa784d6af163ad5deb81982/thumbnails/thumbnail.jpg?time=13395ms - [Modernizing legacy programming architectures using iterative core guidelines](https://www.wearedevelopers.com/videos/441-c-in-constrained-environments) (from "C++ in constrained environments") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/31c871acf2a91c39baf03dfc87dbcaca/thumbnails/thumbnail.jpg?time=13900ms - [Addressing iterative code generation and developer challenges](https://www.wearedevelopers.com/videos/1354-google-gemma-and-open-source-ai-models-clement-farabet) (from "Google Gemma and Open Source AI Models - Clement Farabet") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/0b4187c11cec50499058973322ffa294/thumbnails/thumbnail.jpg?time=259885ms ## Related Articles - [Dev Digest 139 - Soft and hard queries](https://www.wearedevelopers.com/magazine/487-dev-digest-139-soft-and-hard-queries) - [AI Eats the Verifiable First](https://www.wearedevelopers.com/magazine/765-ai-eats-the-verifiable-first) - [Dev Digest 118 - not a total recall](https://www.wearedevelopers.com/magazine/452-dev-digest-118-not-a-total-recall) - [Dev Digest 130 - The Diablo is in the details](https://www.wearedevelopers.com/magazine/470-dev-digest-130-the-diablo-is-in-the-details) ## Related Jobs - [C++ Developer](https://www.wearedevelopers.com/jobs/48498-c-developer) at **thinkcell** - [Founding Developer Advocate](https://www.wearedevelopers.com/jobs/48425-founding-developer-advocate) at **Plumber** - [Senior Fullstack Engineer - Hybrid or Remote](https://www.wearedevelopers.com/jobs/ext/3580342-senior-fullstack-engineer-hybrid-or-remote) at **Edge Impulse** - [Senior Software Engineer, Sandboxes (Eu Or East Coast Preferred)](https://www.wearedevelopers.com/jobs/ext/2161904-senior-software-engineer-sandboxes-eu-or-east-coast-preferred) at **Docker, Inc.** - [Senior Fullstack Engineer - Hybrid or Remote](https://www.wearedevelopers.com/jobs/ext/3573885-senior-fullstack-engineer-hybrid-or-remote) at **Edge Impulse** - [Senior Fullstack Engineer - Hybrid or Remote](https://www.wearedevelopers.com/jobs/ext/3591501-senior-fullstack-engineer-hybrid-or-remote) at **Edge Impulse**