#pragma once #include "olcPixelGameEngine.h" template class safemap{ static bool initializeCompleted; std::mapmap; public: O&operator[](T key){ if(initializeCompleted&&map.count(key)==0){ std::cout<<"WARNING! Trying to get non-existent key "<