1 2 3 4 5 6 7 8 9
#pragma once #include "singleton.hh" template <typename T> T& Singleton<T>::instance() { static T instance_; return instance_; }