For single-indexed containers, you can use a generic TDictionary, for instance one of these:
- Spring.Collections.Dictionaries.pas / Spring.Collections.Dictionaries.TDictionary(TKey,TValue)
- Collections.Dictionaries.pas
- [Archive.is] Generics.Collections.TDictionary – RAD Studio VCL Reference
Reminder to self: check out if there is a generic version of [WayBack] A multi index container: TIndexedStore – Martin C Harvey’s Software Pages anywhere.
Edit 20191220 (thanks Thaddy!) article moved to [WayBack] A multi index container: TIndexedStore – Martin C Harvey’s Pages.
For instance as part of:
The original library has source code in a [WayBack] zip file.
Edit 20191220 (thanks Thaddy!) download moved to [WayBack] IndexedStore.zip.
I got there via:
- [WayBack] Boost.MultiIndex Documentation – Index – 1.62.0
- Multimap – Wikipedia
- [WayBack] Delphi multiple indexed generic list – Stack Overflow
- [WayBack] I have a record of arrays where i search and add new items and want to speed up things. removing ansicompare was a big step forward bit as much the coun… – Yusuf Zorlu – Google+
–jeroen




