concept STL algorithm in category c++

appears as: STL algorithms
Functional Programming in C++

This is an excerpt from Manning's book Functional Programming in C++.

One unfortunate truth is that many C++ programmers stay away from using higher-level abstractions such as STL algorithms. They have various reasons, from being able to write more-efficient code manually, to avoiding writing code that their colleagues can’t easily understand. These reasons are valid sometimes, but not in the majority of cases. Not availing yourself of more-advanced features of the programming language you’re using reduces the power and expressiveness of the language and makes your code more complex and more difficult to maintain.

Let’s try to implement the problem from the beginning of this chapter by using STL algorithms. As a reminder, the task is to get the names of all females in a given group of people (see figure 2.12).