CppCon 2019: Arthur O'Dwyer “Back to Basics: Smart Pointers”
http://CppCon.org
—
Discussion & Comments: https://www.reddit.com/r/cpp/
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2019
—
Smart pointers are one of the key features of modern C++. We'll cover the two fundamental strategies used by the standard smart pointers: unique ownership transfer and reference-counting. We'll show how shared_ptr uses control blocks to implement reference-counting of arbitrary objects, and how to use weak_ptr in conjunction with shared_ptr. We'll explain the convenience functions make_shared and make_unique, and demonstrate how they are more than just conveniences. Finally, we'll motivate, implement, and demystify the curiously recurring template enable_shared_from_this<T>.
Attendees will leave this session with a clear understanding of how C++11's smart pointers work under the hood.
—
Arthur O'Dwyer
New York
Arthur O'Dwyer is the author of "Colossal Cave: The Board Game," "Mastering the C++17 STL" (the book), and "The STL From Scratch" (the training course). He runs professional C++ training courses, is occasionally active on the C++ Standards Committee, and has a blog mostly about C++.
—
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
Видео CppCon 2019: Arthur O'Dwyer “Back to Basics: Smart Pointers” канала CppCon
—
Discussion & Comments: https://www.reddit.com/r/cpp/
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2019
—
Smart pointers are one of the key features of modern C++. We'll cover the two fundamental strategies used by the standard smart pointers: unique ownership transfer and reference-counting. We'll show how shared_ptr uses control blocks to implement reference-counting of arbitrary objects, and how to use weak_ptr in conjunction with shared_ptr. We'll explain the convenience functions make_shared and make_unique, and demonstrate how they are more than just conveniences. Finally, we'll motivate, implement, and demystify the curiously recurring template enable_shared_from_this<T>.
Attendees will leave this session with a clear understanding of how C++11's smart pointers work under the hood.
—
Arthur O'Dwyer
New York
Arthur O'Dwyer is the author of "Colossal Cave: The Board Game," "Mastering the C++17 STL" (the book), and "The STL From Scratch" (the training course). He runs professional C++ training courses, is occasionally active on the C++ Standards Committee, and has a blog mostly about C++.
—
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
Видео CppCon 2019: Arthur O'Dwyer “Back to Basics: Smart Pointers” канала CppCon
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Back to Basics: RAII and the Rule of Zero - Arthur O'Dwyer - CppCon 2019SMART POINTERS in C++ (std::unique_ptr, std::shared_ptr, std::weak_ptr)Back to Basics: Lambdas from Scratch - Arthur O'Dwyer - CppCon 2019SICP Cover Demystified - Conor Hoekstra - CppCon 2020Bjarne Stroustrup - The Essence of C++CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”CppCon 2018: Stoyan Nikolov “OOP Is Dead, Long Live Data-oriented Design”Drinking from the Fire Hose: Keeping up with the evolving landscape of C++ - Brian Ruth - CppConCppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"CppCon 2019: Matthew Fleming “The Smart Pointers I Wish I Had”CppCon 2017: Louis Brandy “Curiously Recurring C++ Bugs at Facebook”CppCon 2017: Arthur O'Dwyer “dynamic_cast From Scratch”CppCon 2019: Kate Gregory “Naming is Hard: Let's Do Better”Back to Basics: Smart Pointers - Rainer Grimm - CppCon 2020Smart Pointer Introduction In C++CppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced. What do they really do?”CppCon 2019: Timur Doumler “Type punning in modern C++”Writing Safety Critical Automotive Software for High Perf AI Hardware - Michael Wong - CppCon 2019CppCon 2019: Hartmut Kaiser “Asynchronous Programming in Modern C++”