|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
What a regex_iterator over a non-contiguous range keeps for REAL: one copy of the range, shared by the iterator's copies, and the cursor mapping its offsets back. On the heap because the walker views it: a short string held by value would move its characters with the iterator.
More...
#include <regex_iter.hpp>
Public Attributes | |
| std::shared_ptr< const std::string > | text |
The copy of [begin_, end_). | |
| offset_cursor< BidirIt > | at |
| At the last offset mapped; never past the next match. | |
What a regex_iterator over a non-contiguous range keeps for REAL: one copy of the range, shared by the iterator's copies, and the cursor mapping its offsets back. On the heap because the walker views it: a short string held by value would move its characters with the iterator.
| BidirIt | The caller's iterator. |