Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using C++20 Ranges Effectively

CppNow via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the transformative impact of C++20 ranges on daily programming in this comprehensive conference talk. Delve into the largest revamp of the Standard Template Library in two decades, going beyond basics to understand key differences between algorithms and views. Examine Range Concepts and their application of the new language feature, with numerous code examples and exercises to bootstrap usage of std::ranges. Learn about range types, iterators, adapters, and containers, as well as practical applications in sorting, filtering, and transforming data. Gain insights into projection parameters, shortcircuiting, and the use of span. Update your C++ skills with this in-depth look at the latest language features, presented by experienced software developer Jeff Garland at CppNow 2019.

Syllabus

Intro
My experience with ranges
How we sort
Find if
Filter view
Key points
Things I wont do
Environments
Status
Proposal
C20 Overview
Godbolt
Ranges Basics
Range Concepts
Why not STD Ranges
Range Types
Iterators
Flatmap
Range Algorithms
Comments
Range adapters
Filter view example
Filter view adapter
Range container
Ranges and Views
Ranges and Collections
For Loops
Ranges Sections
Projection Parameters
Projection Example
Cheat Sheet
Range Examples
Sort Examples
MinMax Examples
Shift Left and Shift Right
Shift Left
Reference
Find Last
View Adapter Details
Shortcircuiting
Transform
What are we actually getting
Span
HeaderSpan
PrintReverse

Taught by

CppNow

Reviews

Start your review of Using C++20 Ranges Effectively

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.