Changes between Initial Version and Version 1 of Ticket #9287, comment 3
- Timestamp:
- Dec 30, 2014, 6:58:50 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9287, comment 3
initial v1 1 1 if you have two iterators that you know point to a contiguous sequence in memory you can create a string_ref 2 2 3 thus: `string_ref sr(& b, std::distance(b, e));`3 thus: `string_ref sr(&*b, std::distance(b, e));` 4 4 5 or: `string_ref sr(& b, e - b);`5 or: `string_ref sr(&*b, e - b);` 6 6