15
STL with Ranges
This chapter discusses the transformative adoption of ranges in C++, marking a paradigm shift from traditional iterators. As an integral facet of modern C++, ranges champion expressive and ergonomic code. Through this chapter, you will grasp the mechanics of utilizing ranges with standard algorithms, achieving cleaner code that’s simultaneously intuitive and powerful. By mastering ranges, C++ developers can harness a more compositional and streamlined approach to algorithm application, setting the stage for more maintainable and efficient code bases.
This chapter will cover the following topics:
- Introduction to ranges
- Ranges for sorting algorithms
- Ranges for searching algorithms
- Best practices
Technical requirements
The ...
Get Data Structures and Algorithms with the C++ STL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.