Replies: 1 comment 1 reply
-
What is a use case for pop_front? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my project, I have JSON patches that I need to apply to objects with indirection that's hidden from the source of the patches, so I need to manually traverse parts of the paths specified by the
json_pointers
in each patch operation. Thejson_pointer
interface is stack-like and provides access to the back element, but I need to be able to access the front element to traverse an object tree from root to leaf. I addedfront()
andpop_front()
methods to the copy ofjson_pointer.hpp
in my project to facilitate this, but I think this kind of traversal is a common enough use case that these methods should be added in an official release.Beta Was this translation helpful? Give feedback.
All reactions