// Copyleft: Sathiamoorthy Manoharan. #include #include class CacheEntry { public: int id; std::string item; }; const int NoOfCachedItems = 5; static std::vector cacheSlot(NoOfCachedItems); bool DoesCacheContain(int myId) { bool rval = false; // fill in the detail return rval; }