12.8.4 Foreign hash tables
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Notes on Using Foreign Code
          • Foreign hash tables
            • PL_new_hash_table()
            • PL_free_hash_table()
            • PL_lookup_hash_table()
            • PL_add_hash_table()
            • PL_del_hash_table()
            • PL_clear_hash_table()
            • PL_new_hash_table_enum()
            • PL_free_hash_table_enum()
            • PL_advance_hash_table_enum()
    • Packages
Availability:C-language interface function
hash_table_enum_t PL_new_hash_table_enum(hash_table_t table)
Return a table enumerator (cursor) that can be used to enumerate all key-value pairs using PL_advance_hash_table_enum(). The enumerator must be discarded using PL_free_hash_table_enum(). It is safe for another thread to add symbols while the table is being enumerated, but undefined whether or not these new symbols are visible. If another thread deletes a key that is not yet enumerated it will not be enumerated.