Skip to content

feat: add thread-safe contains() function for Node.#1457

Open
sxrzh wants to merge 2 commits into
jbeder:masterfrom
sxrzh:fix1350&1092-contains
Open

feat: add thread-safe contains() function for Node.#1457
sxrzh wants to merge 2 commits into
jbeder:masterfrom
sxrzh:fix1350&1092-contains

Conversation

@sxrzh

@sxrzh sxrzh commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Add contains() function to check if node[key] exists.
Close #1350 and close #1092.

@sxrzh

sxrzh commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Note that for a sequence node and an integer within [0, size - 1] as the key, contains still returns true. I think this is reasonable.

Removed unused yaml-cpp/null.h include.
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.

[Crash] Segmentation Fault/Double Free in Multithreaded Access to Undefined YAML::Node via IsDefined() and reset() Checking for key without mutation

1 participant