What is `toml::ordered_map` and when to use it
maintoml::ordered_map is a map type that preserves the insertion order of values, allowing you to iterate over elements in the order they were defined in the TOML file.
Key Characteristics:
- Order Preservation: It maintains the order of keys within the same table. However, order is not maintained across different tables.
- Performance: As a linear container, search operations require
O(n)time relative to the number of elements.
When to use: Use ordered_map when maintaining the original order of values is important and search operations are infrequent.