Skip to content
#

singleton-pattern

Here are 48 public repositories matching this topic...

This repository contains an implementation of the Singleton Lazy Initialization design pattern in C++20. The Singleton pattern ensures that a class has only one instance and provides a global point of access to that instance.

  • Updated Apr 11, 2024
  • C++

This C++20 solution enables lazy initialization for multithreaded tasks. It efficiently initializes an expensive object only when needed, ensuring thread safety. It utilizes std::once_flag and std::atomic<bool> for synchronization, optimizing resource utilization and scalability.

  • Updated Apr 6, 2024
  • C++

"GetCubit" is a package for managing Cubit instances in a Flutter app. It allows for easy registration, access, and deletion of singleton or multiple Cubit instances with unique identifiers, and facilitates communication between instances. Simple installation and usage.

  • Updated Mar 12, 2024
  • C++

Improve this page

Add a description, image, and links to the singleton-pattern topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the singleton-pattern topic, visit your repo's landing page and select "manage topics."

Learn more