3 ms·
It really depends. I had used singletons when wanted to manage a resource using RAII and have to be easily available across all the applications. My canonical e
by pmelendez 13y ago
It really depends. I had used singletons when wanted to manage a resource using RAII and have to be easily available across all the applications. My canonical example would be writing on a log but YMMV.