Creational Design Patterns in Modern C++ - Registry of Singletons - II

Creational Design Patterns in Modern C++ - Registry of Singletons - II

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to implement lazy instantiation for singletons using callbacks and shared pointers. It covers the transition from eager to lazy instantiation, the use of shared pointers for memory management, and the process of registering and retrieving printer instances. The tutorial also discusses modifying local printers to use shared pointers and tests the implementation. An alternative approach using the Meyers Singleton is briefly explored.

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