
Complete Modern C++ - Deleter
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
The video tutorial explains the features of smart pointers, focusing on their default behavior of calling delete, which can lead to undefined behavior when managing resources not acquired with new. It introduces custom deleters, which can be any callable, to manage such resources. The tutorial covers creating custom deleters using function objects, global functions, or lambda expressions, and demonstrates their implementation with unique and shared pointers. It highlights the differences in specifying deleters for these pointers, emphasizing the need to specify the deleter type for unique pointers but not for shared pointers.
Read more
1 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
What new insight or understanding did you gain from this video?
Evaluate responses using AI:
OFF
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?