| 80 | // Map that stores the registered creation functions |
| 81 | typedef std::map<ID, std::function<T*(void)>> Registry; |
| 82 | static Registry* GetRegistry() { |
| 83 | static Registry reg; |
| 84 | return ® |
| 85 | } |
| 86 | }; |
| 87 | |
| 88 | template <typename Base, typename Sub, typename ID = std::string> |
nothing calls this directly
no outgoing calls
no test coverage detected