YoVDO

Lambdas - How to Capture Everything and Stay Sane

Offered By: Meeting Cpp via YouTube

Tags

C++ Courses Memory Management Courses Closures Courses Move Semantics Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.

Syllabus

Lambdas, how to capture everything and stay sane - Dawid Zalewski - Meeting C++ 2022


Taught by

Meeting Cpp

Related Courses

Computer Graphics
University of California, San Diego via edX
Intro to Parallel Programming
Nvidia via Udacity
Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera
C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera
Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera