Changeset 73 for Generics/TemplateGenerics/Generic
- Timestamp:
- Oct 28, 2010, 5:41:05 PM (14 years ago)
- Location:
- Generics/TemplateGenerics/Generic
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/DictionaryImplementation.tpl
r72 r73 1 1 2 2 {$INCLUDE 'ListImplementation.tpl'} 3 3 4 function TGDictionary.GetKey(Index: TDictionaryIndex): TDictionaryKey; 4 5 begin -
Generics/TemplateGenerics/Generic/ListImplementation.tpl
r72 r73 118 118 begin 119 119 Result := 0; 120 while (Result < FCount) and CompareMem(Addr(FItems[Result]), Addr(Item), SizeOf(TListItem)) do 120 while (Result < FCount) and 121 not CompareMem(Addr(FItems[Result]), Addr(Item), SizeOf(TListItem)) do 121 122 Result := Result + 1; 122 123 if Result = FCount then Result := -1;
Note:
See TracChangeset
for help on using the changeset viewer.