Commit ff23b25
committed
Fix #946: Add standard iterator traits to CharPointer_UTF8 for compatibility with std algorithms
- Added value_type, pointer, reference, iterator_category, and difference_type typedefs
- Enables CharPointer_UTF8 to work with standard library algorithms like std::all_of
- Uses input_iterator_tag as the most appropriate category for UTF-8 character iteration
- Maintains full backward compatibility with existing code
- Tested with both GCC and Clang compilers1 parent d6181bd commit ff23b25
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
0 commit comments