Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#74 Fixed keeping insertion orders of mapping node items #76

Merged
merged 3 commits into from
Sep 17, 2023

Conversation

fktn-k
Copy link
Owner

@fktn-k fktn-k commented Sep 17, 2023

The order of inserting mapping node items has been fixed to keep the insertion order, not weak comparison order like std::map objects have.
This is because, as for YAML formatted files, the order of keys in the file seems to be somehow important for the readers to understand logical relations between YAML nodes.
Such a fix has been realized by implementing OrderedMap class which behaves as a map-like container but still preserves the insertion order of keys.
The OrderedMap class currently has its minimal implementation only to the extent to which it can be compiled successfully.
The further implementation will be added when some additional features are necessary to achieve more complex behaviors.

@fktn-k fktn-k self-assigned this Sep 17, 2023
@fktn-k fktn-k linked an issue Sep 17, 2023 that may be closed by this pull request
@fktn-k fktn-k merged commit 492cc80 into develop Sep 17, 2023
66 checks passed
@fktn-k fktn-k deleted the feature/74_keep_mapping_insertion_order branch September 17, 2023 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support keeping insertion order for mapping nodes
1 participant