forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json_formatter: Add support for standard range containers
This commit extends the JSON formatting capabilities to support all standard range containers through the C++20 ranges concept. Key improvements: - Add generic range support using std::ranges::input_range concept - Enable JSON formatting for any range type without materialization - Maintain existing support for vector, map, and unordered_map - Provide a flexible, type-agnostic serialization approach Example use cases: - Formatting std::span - Serializing range views - Converting filter and transform views directly to JSON Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information
Showing
2 changed files
with
113 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters