STL Algorithms as Expressions - Oleksandr Bacherikov - [CppNow 2021]
#Boost #Cpp #CppNow
Slides: https://cppnow.org/history/2021/talks/
CppNow Website: https://cppnow.org
CppNow Twitter: @CppNow
Streamed & Edited By Digital Medium Ltd: https://events.digital-medium.co.uk
------
This talk started as an effort to implement Computational Geometry algorithms (used in Computer Vision and Graphics) in the Generic Programming style. Because they have many more customization points than STL algorithms, the common approaches used in STL are not sufficient. This led to discoveries that can have surprisingly broad application to STL range algorithms and the way generic code is written. Expression Templates have been used by all of the Linear Algebra libraries for years, but mostly to avoid temporary buffer allocations. However, with a few extensions, they can achieve much more:
* Expressions constructed using the function call syntax provide a natural and expressive way of composition.
* Expression Templates typically support only data types as their template parameters, but allowing function object parameters makes the expression a function object itself. We’ll see how this definition syntax avoids all the boilerplate of function definitions and even lamdba expressions.
* Expressions can be customized using policies, where each policy specifies how it affects certain operations. We’ll discuss the benefits of a customization mechanism that applies given policies to all the operations in the expression.
------
Oleksandr Bacherikov
Software engineer, Snap Inc
------
May 1, 2022 - May 6, 2022 - Aspen, Colorado
-------------------------
---
*--*
---
Видео STL Algorithms as Expressions - Oleksandr Bacherikov - [CppNow 2021] автора Программистское Устройство
Видео STL Algorithms as Expressions - Oleksandr Bacherikov - [CppNow 2021] автора Программистское Устройство
Информация
3 декабря 2023 г. 18:46:44
01:26:14
Похожие видео