Files
FCP_gym/cpp/localization/Singleton.h
2025-11-19 08:08:22 -05:00

21 lines
325 B
C++

#ifndef SINGLETON_H
#define SINGLETON_H
template <class T>
class Singleton {
public:
static T& getInstance() {
static T instance;
return instance;
}
private:
Singleton();
~Singleton();
Singleton(Singleton const&);
Singleton& operator=(Singleton const&);
};
#endif // SINGLETON_H