This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

21
mdiwin/CACHE.TPP Normal file
View File

@@ -0,0 +1,21 @@
#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;
}