https://cppcon.org/
---
The Dark Corner of STL in Cpp : MinMax Algorithms - Šimon Tóth - CppCon 2022
https://github.com/CppCon/CppCon2022
How many problems could one possibly run into when calling a simple algorithm such as std::min?
In this talk, we will take a deep dive into the ergonomics of min-max algorithms and explore several language features in the process:
• reference semantics and lifetime issues
• const correctness and use of const_cast
• costs of using the std::initializer_list
We will finish by exploring the options for addressing these issues when implementing functions with similar semantics.
---
Šimon Tóth
Currently on a mission to share my 20 years' worth of Software Engineering experience with the world.
__
Videos Streamed & Edited by Digital Medium: http://online.digital-medium.co.uk
#cppcon #programming #stl
No comment yet, add your voice below!