From ca37503f9390e52c2ef22ec3bab6ea1af963a308 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 14 Jan 2024 08:30:42 -0800 Subject: [PATCH] scan -> scan_to --- test/scan.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/scan.h b/test/scan.h index 54714313..a12f6a6b 100644 --- a/test/scan.h +++ b/test/scan.h @@ -641,8 +641,9 @@ void vscan(detail::scan_buffer& buf, string_view fmt, scan_args args) { detail::parse_format_string(fmt, h); } +// Scans the input and stores the results (in)to args. template -auto scan(string_view input, string_view fmt, T&... args) +auto scan_to(string_view input, string_view fmt, T&... args) -> string_view::iterator { auto&& buf = detail::string_scan_buffer(input); vscan(buf, fmt, make_scan_args(args...));