Introducing the standard library algorithms
Integrating the standard library algorithms into your C++ vocabulary is important. In this introduction, I will present a set of common problems that can be solved effectively by using the standard library algorithms.
C++20 comes with a dramatic change to the Algorithm library by the introduction of the Ranges library and the language feature of C++ concepts. So, before we start, we need a brief background of the history of the C++ standard library.
Evolution of the standard library algorithms
You have probably heard about STL algorithms or STL containers. And hopefully, you have heard about the new Ranges library introduced with C++20. There have been a lot of additions to the standard library in C++20. And before going further, I need to clear up some terminology. We'll start with the STL.
The STL, or the Standard Template Library, was initially the name of a library added to the C++ standard library in the 1990s...