#pragma once #include #include "common.hpp" POLYBAR_NS namespace factory_util { template shared_ptr singleton(Deps&&... deps) { static shared_ptr instance{make_shared(forward(deps)...)}; return instance; } } // namespace factory_util POLYBAR_NS_END