ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Back to Basics: Smart Pointers - Rainer Grimm - CppCon 2020

Автор: CppCon

Загружено: 2020-10-03

Просмотров: 31739

Описание: https://cppcon.org/
https://github.com/CppCon/CppCon2020/...
---
From the library's perspective, an essential feature in C++11 was smart pointers.

Since C++11, we have four different smart pointer: std::auto_ptr, std::unique_ptr, std::shared_pointer, and std::weak_ptr. With C++17 std::auto_ptr was removed and with C++20, we get an std::atomic<std::shared_ptr>, and std::atomic<std::weak_ptr>.

Each smart pointer models a specific ownership semantic and has a particular purpose. The crucial question is, therefore: When should you use which smart pointer? The answer to this question becomes more sophisticated when you think about the arguments or the return value of a function. You have to answer the following question for the function arguments:

What does it mean to take the function arguments by pointer, by std::unique_ptr, or by std::shared_ptr?
Should the function take the smart pointer by value or by reference?
Should the argument be const or not?

The answers to those questions are not the end of the story. When you have a factory function creating something, the question immediately arises: Should the factory function return its product by a pointer, by std::unique_ptr, or by std::shared_ptr?

Smart pointers are more than pointers decorated with smartness. Smart pointer models ownership semantic. Understanding the ownership semantic of smart pointers is the main topic of my talk and, therefore, your takeaway.

---
Rainer works as a software architect, team lead, and instructor since 1999. In 2002, he created a further education round at his company. He gives seminars since 2002. Rainer's first seminars were about proprietary management software, but seminars for Python and C++ followed immediately. In his spare time, Rainer likes to write articles about C++, Python, and Haskell. He also likes to speak at conferences. Rainer publishes weekly on his English Modernes Cpp and the German blog, hosted by Heise Developer.
Since 2016 he is an independent instructor giving seminars about modern C++ and Python. Rainer published several books in various languages to modern C++ and concurrency, in particular. Due to his profession, Rainer always searches for the best way to teach modern C++.

---
Work at Hudson River Trading (HRT): https://tinyurl.com/safxfctf
---

Streamed & Edited by Digital Medium Ltd - [email protected]

*-----*
Register Now For CppCon 2022: https://cppcon.org/registration/
*-----*

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Back to Basics: Smart Pointers - Rainer Grimm - CppCon 2020

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Back to Basics: Design Patterns - Mike Shah - CppCon 2020

Back to Basics: Design Patterns - Mike Shah - CppCon 2020

Pointers in C / C++ [Full Course]

Pointers in C / C++ [Full Course]

CppCon 2019: Arthur O'Dwyer “Back to Basics: Smart Pointers”

CppCon 2019: Arthur O'Dwyer “Back to Basics: Smart Pointers”

Back to Basics: Concepts in C++ - Nicolai Josuttis - CppCon 2024

Back to Basics: Concepts in C++ - Nicolai Josuttis - CppCon 2024

Back to Basics: Concurrency - Arthur O'Dwyer - CppCon 2020

Back to Basics: Concurrency - Arthur O'Dwyer - CppCon 2020

Юрий Малич «Использование ссылок и ref-структур для низкоуровневой оптимизации C# кода»

Юрий Малич «Использование ссылок и ref-структур для низкоуровневой оптимизации C# кода»

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Как россиян отучают пользоваться интернетом. Михаил Фишман — о переходе страны на «белый список»

Как россиян отучают пользоваться интернетом. Михаил Фишман — о переходе страны на «белый список»

Back to Basics: Templates in C++ - Nicolai Josuttis - CppCon 2022

Back to Basics: Templates in C++ - Nicolai Josuttis - CppCon 2022

КРУТИХИН: НЕВООБРАЗИМОЕ ПРОИСХОДИТ в ИРАНЕ! Так ВОТ, что БУДЕТ ДАЛЬШЕ. Ну и ПОВОРОТ @i_gryanul_grem

КРУТИХИН: НЕВООБРАЗИМОЕ ПРОИСХОДИТ в ИРАНЕ! Так ВОТ, что БУДЕТ ДАЛЬШЕ. Ну и ПОВОРОТ @i_gryanul_grem

Back to Basics: Designing Classes (part 1 of 2) - Klaus Iglberger - CppCon 2021

Back to Basics: Designing Classes (part 1 of 2) - Klaus Iglberger - CppCon 2021

Back to Basics: Move Semantics (part 1 of 2) -  Klaus Iglberger - CppCon 2019

Back to Basics: Move Semantics (part 1 of 2) - Klaus Iglberger - CppCon 2019

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

Back to Basics: Lambdas - Nicolai Josuttis - CppCon 2021

Back to Basics: Lambdas - Nicolai Josuttis - CppCon 2021

Weak Pointers in C++ (std::weak_ptr)

Weak Pointers in C++ (std::weak_ptr)

Smart Pointers in C++ (Stop Using new?)

Smart Pointers in C++ (Stop Using new?)

From C++ Templates to C++ Concepts - Metaprogramming: an Amazing Journey - Alex Dathskovsky

From C++ Templates to C++ Concepts - Metaprogramming: an Amazing Journey - Alex Dathskovsky

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Back to Basics: Templates (part 1 of 2) - Bob Steagall - CppCon 2021

Back to Basics: Templates (part 1 of 2) - Bob Steagall - CppCon 2021

Back to Basics: The Structure of a Program - Bob Steagall - CppCon 2020

Back to Basics: The Structure of a Program - Bob Steagall - CppCon 2020

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]