Skip to Content
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
book

C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

by Paul Deitel, Harvey Deitel
April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Pearson
Content preview from C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

14. Standard Library Algorithms and C++20 Ranges & Views

Objectives

In this chapter, you’ll:

  • Understand minimum iterator requirements for working with standard library containers and algorithms.

  • Create lambda expressions that capture local variables to use in the lambda expressions’ bodies.

  • Use many of the C++20 std::ranges algorithms.

  • Understand the C++20 concepts corresponding to the C++20 std::ranges algorithms’ minimum iterator requirements.

  • Compare the new C++20 std::ranges algorithms with older common-range std algorithms.

  • Use iterators with algorithms to access and manipulate the elements of standard library containers.

  • Pass lambdas, function pointers and function objects into standard library algorithms mostly interchangeably.

  • Use ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications, 2nd Edition

Designing Data-Intensive Applications, 2nd Edition

Martin Kleppmann, Chris Riccomini

Publisher Resources

ISBN: 9780136905776