#ifndef __UNIT_003__ #define __UNIT_003__ #include #include namespace Unit_003 { template struct MapWrapper : public std::map { Value get(Key k) { SLB_DEBUG_CALL; SLB_DEBUG(2, "map::GET [%s->%s]", typeid(Key).name(), typeid(Value).name()) return (*this)[k]; } void set(Key k, Value v) { SLB_DEBUG_CALL; SLB_DEBUG(2, "map::SET [%s->%s]", typeid(Key).name(), typeid(Value).name()) (*this)[k] = v; } }; typedef MapWrapper MapStringInt; typedef MapWrapper MapIntString; } // end of unit 003 #endif