Extend memcpy fast path to sized sentinels (e.g. std::counted_iterator) (#5268)

This commit is contained in:
Niels Lohmann
2026-07-12 09:16:06 +02:00
committed by GitHub
parent b2b47c69b1
commit c197feff81
11 changed files with 81 additions and 21 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ static basic_json parse(IteratorType first, SentinelType last,
: defaults to `IteratorType`; may be a different type comparable to `IteratorType` via `operator!=`, for instance.
- a custom sentinel type for C++20 ranges
- `std::counted_iterator` with a different sentinel type
- `std::default_sentinel_t`, when `IteratorType` is `std::counted_iterator`
## Parameters