Using C++20 Ranges Effectively
Offered By: CppNow via YouTube
Course Description
Overview
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
Related Courses
Information TheoryThe Chinese University of Hong Kong via Coursera Intro to Computer Science
University of Virginia via Udacity Analytic Combinatorics, Part I
Princeton University via Coursera Algorithms, Part I
Princeton University via Coursera Divide and Conquer, Sorting and Searching, and Randomized Algorithms
Stanford University via Coursera