Files
Work/mdiwin/CACHE.TPP
2024-08-07 09:16:27 -04:00

22 lines
395 B
C++

#ifndef _CACHE_HPP_
#error CACHE.HPP must precede CACHE.TPP
#endif
#ifdef _EXPAND_CACHE_TEMPLATES_
#pragma option -Jgd
#endif
template <class K,class T,size_t N>
WORD Cache<K,T,N>::locateItem(const K &someKeyItem,T &someDataItem)
{
for(LONG index=0;index<mEntries;index++)
{
if(mKeyItem[index]==someKeyItem)
{
someDataItem=mDataItem[index];
return TRUE;
}
}
return FALSE;
}