Date: Thu, 20 Feb 2025 21:19:38 +0000
On Thu, 20 Feb 2025 at 20:41, Phil Bouchard via Std-Proposals <
std-proposals_at_[hidden]> wrote:
> regex_match would get 1 more character on the need basis using in.get()
> quite simply. If it fails then it would rewind the read pointer to where
> it was.
>
How? iostream putback is extremely limited.
>
> I think that's a pretty efficient way of writing a decent parser.
>
Extracting one char at a time and then using std::regex repeatedly is
anything but efficient.
std-proposals_at_[hidden]> wrote:
> regex_match would get 1 more character on the need basis using in.get()
> quite simply. If it fails then it would rewind the read pointer to where
> it was.
>
How? iostream putback is extremely limited.
>
> I think that's a pretty efficient way of writing a decent parser.
>
Extracting one char at a time and then using std::regex repeatedly is
anything but efficient.
Received on 2025-02-20 21:19:54