C++17: Standard Library Algorithms: Changes and Additions

The C++14 Standard Library already contains a wealth of different kinds of algorithms. C++17 adds the following new algorithms and new options to existing algorithms:

  • std::sample()
  • std::for_each_n()
  • Specialized searchers for std::search()
  • Generalized sum algorithms:
    • exclusive_scan()
    • inclusive_scan()
    • transform_exclusive_scan()
    • transform_inclusive_scan()
    • reduce()
    • transform_reduce()
  • Parallel algorithms
  • gcd() / lcm()

I wrote an article for the Visual C++ Team Blog explaining what’s new and what has changed related to algorithms in the C++17 Standard Library in more details.

You can read the article over here.

Share

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment: