{"id":1831,"date":"2018-10-18T18:58:17","date_gmt":"2018-10-18T17:58:17","guid":{"rendered":"http:\/\/www.nuonsoft.com\/blog\/?p=1831"},"modified":"2018-10-18T18:58:17","modified_gmt":"2018-10-18T17:58:17","slug":"c17-standard-library-algorithms-changes-and-additions","status":"publish","type":"post","link":"https:\/\/www.nuonsoft.com\/blog\/2018\/10\/18\/c17-standard-library-algorithms-changes-and-additions\/","title":{"rendered":"C++17: Standard Library Algorithms: Changes and Additions"},"content":{"rendered":"<p>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:<\/p>\n<ul>\n<li>std::sample()<\/li>\n<li>std::for_each_n()<\/li>\n<li>Specialized searchers for std::search()<\/li>\n<li>Generalized sum algorithms:\n<ul>\n<li>exclusive_scan()<\/li>\n<li>inclusive_scan()<\/li>\n<li>transform_exclusive_scan()<\/li>\n<li>transform_inclusive_scan()<\/li>\n<li>reduce()<\/li>\n<li>transform_reduce()<\/li>\n<\/ul>\n<\/li>\n<li>Parallel algorithms<\/li>\n<li>gcd() \/ lcm()<\/li>\n<\/ul>\n<p>I wrote an article for the\u00a0<strong>Visual C++ Team Blog<\/strong> explaining what\u2019s new and what has changed related to algorithms in the C++17 Standard Library in more details.<\/p>\n<p><a href=\"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2018\/10\/16\/standard-library-algorithms-changes-and-additions-in-c17\/\" target=\"_blank\" rel=\"noopener\">You can read the article over here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u00a0Visual C++ Team Blog explaining [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[222],"class_list":["post-1831","post","type-post","status-publish","format-standard","hentry","category-c","tag-c17"],"_links":{"self":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/posts\/1831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=1831"}],"version-history":[{"count":2,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/posts\/1831\/revisions"}],"predecessor-version":[{"id":1833,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/posts\/1831\/revisions\/1833"}],"wp:attachment":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=1831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=1831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=1831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}