Sorting can be done many ways.
A “sorted view”
by Nick Athanasiou
From the article:
This installment elaborates on the creation of a “sorted_view” utility. The “References” section contains links to the complete code; throughout the article, we provide demos and snippets to showcase and explain the implementations. The section on modernizing the code contains real world applications of the following C++17 features:
- structured bindings
- template argument deduction for class templates
Add a Comment
Comments are closed.