sourcemeta / jsontoolkit

A swiss-army knife for expressive JSON programming in modern C++. Covers JSON, JSON Pointer, JSONL, and JSON Schema
https://jsontoolkit.sourcemeta.com/
Other
38 stars 3 forks source link

feat(jsonpointer): introduce `WeakPointer` #1173

Closed tony-go closed 2 months ago

tony-go commented 2 months ago

The current Pointer abstraction stores properties by making copies instead of keeping references. The new WeakPointer is designed to eliminate unnecessary copies by holding references to the properties instead, thereby improving efficiency.