Brief bookclub talk I gave at work introducing the singleton design pattern in C++.Chapter 15 from Hands-On Design Patterns with C++ by Fedor G. Pikus. Source code:singleton.hpp | singleton.cpp Share this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on LinkedIn (Opens in new window) LinkedIn Email a link to a friend (Opens in new window) Email Like this:Like Loadingโฆ Related
Local static variable initialization is thread-safe from C++11 standard onwards.