mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-03 10:33:25 +08:00
support bazel complie this project and format code.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Created by light on 20-2-6.
|
||||
//
|
||||
|
||||
class singleton {
|
||||
private:
|
||||
singleton() {}
|
||||
static singleton *p;
|
||||
public:
|
||||
static singleton *instance();
|
||||
};
|
||||
|
||||
singleton *singleton::p = new singleton();
|
||||
singleton* singleton::instance() {
|
||||
return p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user