C++17 STL Cookbook by Jacek Galowicz

C++17 STL Cookbook by Jacek Galowicz

Author:Jacek Galowicz [Galowicz, Jacek]
Language: eng
Format: azw3
Tags: COM051000 - COMPUTERS / Programming / General, COM051010 - COMPUTERS / Programming Languages / General, COM051070 - COMPUTERS / Programming Languages / C++
Publisher: Packt Publishing
Published: 2017-06-28T04:00:00+00:00


Composing useful algorithms from standard algorithms - gather

A very nice example for the composability of STL algorithms is gather. Sean Parent, principal scientist at Adobe Systems at the time, popularized this algorithm because it is both useful and short. The way it is implemented, it is the ideal poster child for the idea of STL algorithm composition.

The gather algorithm operates on ranges of arbitrary item types. It modifies the order of the items in such a way that specific items are gathered around a specific position, chosen by the caller.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.