13

Numeric and Range -Based Operations

In this chapter, you will uncover the potential of the powerful numeric and sorting operations of the C++ Standard Template Library (STL). These functions breathe life into sequences, making tasks such as accumulation, transformation, and querying using sorted ranges a breeze. Readers will gain insights into elementary and advanced numeric operations and discover the utility of working with sorted collections. When paired with best practices, this chapter ensures developers have a robust toolset to optimize, parallelize, and handle numeric data with finesse.

This chapter will cover the following main topics:

  • Basic numeric operations
  • Advanced numeric operations
  • Operations on sorted ranges
  • Best practices ...

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.