Skip to content

Easily encapsulate normal C++ classes into singleton classes

License

Notifications You must be signed in to change notification settings

Woo-ing/UniSingleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniSingleton For C++

Project Description

A simple can easily encapsulate normal C++ classes into singleton classes, can support both classes with and without instance() function, and with several singleton instance management functions. Some usage examples are provided in main.cpp.

How to compile

  • For Linux systems
  1. Go to the project directory and execute:

    cmake -B./build
  2. Go to the build directory and run the following command:

    ./UniSignleton
  • For Windows systems
  1. Go to the project directory in the console and execute:

    cmake -B./build -G"Visual Studio 17 2022"
  2. Go to the build directory in the file browser and double-click UniSingleton.sln;

  3. Use Visual Studio to compile the project.

About

Easily encapsulate normal C++ classes into singleton classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published