Search Header Logo
Complete Modern C++ - Deleter

Complete Modern C++ - Deleter

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?