Tommy provides only partial iterator support with the "foreach" functions.
If you need real iterators you have to insert all the objects also in a tommy_list, and use the list as iterator.
This technique allows to keep track of the insertion order with the list, and provides more search possibilities using different data structures for different search keys.
See the next example, for a objects inserted in a tommy_list, and in two tommy_hashdyn using different keys.