Главная
Study mode:
on
1
Lambdas, how to capture everything and stay sane - Dawid Zalewski - Meeting C++ 2022
Description:
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only! Grab it Explore the intricacies of lambda captures in C++ through this comprehensive conference talk from Meeting C++ 2022. Delve into the complex and evolving rules governing lambda captures, starting with the fundamentals of what it means to capture into a lambda and the concept of closures. Discover which elements truly require capturing and why certain captured objects resist modification. Examine various capture types and learn to combine them effectively. Investigate how init captures enable more sophisticated behaviors, such as capturing move-only objects or by const references. Give special attention to capturing 'this' and address related lifetime issues in depth. Conclude by exploring advanced scenarios like capturing parameter packs and structured bindings. Gain a solid understanding of lambda internals and closure object design, empowering you to write more efficient captures and avoid common pitfalls. By the end of this 55-minute talk, equip yourself with the knowledge to confidently and effectively utilize lambda captures in your C++ code. Read more

Lambdas - How to Capture Everything and Stay Sane

Meeting Cpp
Add to list