STL Algorithms in Action -- Haitham Gad

Use of STL Algorithm as building block to implement various high level algorithms.

STL Algorithms in Action

by Haitham Gad

From the article:

We saw variations of three common sorting algorithms implemented generically and compactly using STL algorithms. In general, STL algorithms are more applicable than they look. The key to utilizing them is to always ask whether the raw loop I’m about to write (or the one I’m reading) can be replaced by a packaged STL algorithm. You’d be surprised how many times this question can be answered affirmatively.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.