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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial surveys C++20 ranges and their use in programming. It explains the differences between algorithms and views, examines how range concepts support the library, and uses code examples and exercises to demonstrate range features.

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.