#pragma once /** * A simple singleton implementation. */ template struct Singleton { static T& instance() { static T inst; return inst; } };