C++20 Algorithms Playbook
If the C++ Standard Library seems intimidating, try getting started with it through the <algorithms> header. This course will teach you how to find pre-written functions that will speed up your development.
What you'll learn
The C++ Standard Library is large and powerful. Many C++ developers avoid it, and write things by hand instead. That’s slower and harder work. In this course, C++20 Algorithms Playbook, you’ll learn to use the functions in to get your work done quickly and safely. First, you'll discover simple examples where using an algorithm is more expressive and easier than writing a loop yourself. Next, you'll explore searching and sorting a collection, transforming elements of a collection, and copying part of one collection to another. Finally, you'll see how to combine algorithms to complete complex tasks without writing complex code. When you’re finished with this course, you’ll have the skills and knowledge of the standard header needed to write clearer and better code with less effort and time spent.
Table of contents
- Introduction 1m
- Version Check 2m
- C++ and Libraries 2m
- Discoverability 1m
- Collections, Algorithms, Iterators 3m
- Algorithms 2m
- Iterators 1m
- Demo: Iterators 4m
- Advantages of Algorithms 3m
- Demo: Count 5m
- Member or Nonmember Begin and End 2m
- Is There a Ranges Version? 1m
- Recognizing Algorithms 2m
- Algorithms in This Course 2m
- Other Headers 1m
- Summary 1m
- Introduction 1m
- Count 4m
- Count If 2m
- Demo: Counting 3m
- Why Count? 2m
- Demo: all_of, any_of, and none_of 2m
- Finding 1m
- Range Views 4m
- Demo: Finding 7m
- Variations on Finding 2m
- Reverse Iterators 3m
- Iterator Arithmetic 2m
- Demo: Reverse Iterators and Iterator Arithmetic 3m
- Removing Elements 2m
- Demo: Remove 8m
- Summary 1m