STL Algorithms as Expressions
Explore an innovative approach to implementing and customizing STL algorithms using Expression Templates in this CppNow 2021 conference talk by Oleksandr Bacherikov. Delve into the application of Generic Programming techniques to Computational Geometry algorithms, uncovering discoveries with broad implications for STL range algorithms and generic code writing. Learn how Expression Templates can be extended beyond their traditional use in Linear Algebra libraries to achieve greater flexibility and expressiveness. Discover how function call syntax can be used for natural composition, how incorporating function object parameters transforms expressions into function objects themselves, and how policy-based customization can be applied across entire expressions. Gain insights into simplifying Ranges examples, implementing fold operations, and creating expressive binary search syntax. Compare this approach to the Abbreviated Lambdas proposal and explore its potential to revolutionize the way generic code is written in C++. Read more