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

  Рет қаралды 29,889

CppCon

CppCon

Күн бұрын

Пікірлер: 24
@MasteringCodeInterviews
@MasteringCodeInterviews 2 жыл бұрын
The most invaluable resource to learn c++.It clarifies all the doubts of smart pointer.Rainer thanks a lot for such in depth talk.
@MicheleTurchiarelli
@MicheleTurchiarelli 4 жыл бұрын
Love the CppCon. It's always a pleasure to watch, even for those things that I already know and studied.
@JeremyCoppin
@JeremyCoppin 4 жыл бұрын
Thanks. Brilliant and long overdue. All other talks on this subject ( and I have watched hours) have always left me with more questions than answers esp wrt using smart pointers in function calls.
@jvsnyc
@jvsnyc 3 жыл бұрын
Yeah. Some may be hand-waving saying that they should always be encapsulated in some other object, but really don't focus on it at all.
@myown236
@myown236 3 жыл бұрын
What an excellent presentation. Suchba rare and clear wisdom on smart pointers.
@PepeOsca
@PepeOsca 4 жыл бұрын
Oh God, this talk is gold! Thanks Rainer.
@hanyanglee9018
@hanyanglee9018 2 жыл бұрын
unique pointers are very special. Generally don't put them in any std container unless you know what you are doing. I remember I saw the idea again and again that if something is not copy-able and the copied version is equivalent to the origin version and the original one is not modified, it's not an element for you to put into std containers. Unique point is the most famous one in such cases. But if you limit the manipulation like: no copy at all, like a vector and only emplace_back(or push_back(std::move(...)) just like what you see in the video) and never modify it, it maybe ok.
@jvsnyc
@jvsnyc 3 жыл бұрын
Some people like to say that we called it RAII because RFID was already taken for another meaning (Radio Frequency Id)....but Resource Freeing Is Destruction would be more apt otherwise.
@MikePrice888
@MikePrice888 2 жыл бұрын
such a good presentation with plenty of examples for different levels! thank you so much
@CppCon
@CppCon 2 жыл бұрын
Glad it was helpful!
@hanyanglee9018
@hanyanglee9018 2 жыл бұрын
1:02:54 I don't agree with you professor. In this case, a weak pointer maybe the best. Usually in such cases, there is a tree like memory management under the hood. It's syntaxly a pointer but in fact a handle. It's not designed to be deleted by user. Usually the library also provides a destroy-like function to determine the object and this is always shown in docs. Shouldn't be a problem.
@yjc149
@yjc149 Жыл бұрын
another greate back to basic video !
@jvsnyc
@jvsnyc 3 жыл бұрын
This seems to go the furthest of any of the "short" one hour talks about best practices when pointers and references appear in function parameter lists. Near the end ~54:00
@hanyanglee9018
@hanyanglee9018 2 жыл бұрын
We will only see the destructor of daughter when the family goes out of scope. What a sad story.
@konstantinburlachenko2843
@konstantinburlachenko2843 2 жыл бұрын
Small mistake at slide 11 there is also a weak pointer counter inside shared pointer control block
@thorsten9211
@thorsten9211 4 жыл бұрын
Helped me a lot to understand shared_ptr`s :) Thanks!
@retrom
@retrom 4 жыл бұрын
Pumped for this one.
@maciejurbanski6206
@maciejurbanski6206 3 жыл бұрын
Thank you a lot for useful knowledge!
@CppCon
@CppCon 3 жыл бұрын
Glad it was helpful!
@retropaganda8442
@retropaganda8442 4 жыл бұрын
Thank you for using KDE.
@Fetrovsky
@Fetrovsky Жыл бұрын
In my overview, I give an overview of what my overview is.
@__hannibaalbarca__
@__hannibaalbarca__ Жыл бұрын
Best : oh this a terrible English i can’t read it; this what happened to me 15 years before and waist too much time for English grammer and listen
Back to Basics: Design Patterns - Mike Shah - CppCon 2020
48:15
Back to Basics: Pointers and Memory - Ben Saks - CppCon 2020
1:00:56
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
C++ Smart Pointers - Usage and Secrets - Nicolai Josuttis
1:02:22
NDC Conferences
Рет қаралды 21 М.
Back to Basics: Concurrency - Arthur O'Dwyer - CppCon 2020
1:04:28
Back to Basics: Exceptions - Klaus Iglberger - CppCon 2020
1:01:45
are "smart pointers" actually smart?
9:44
Low Level
Рет қаралды 79 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН