diff --git a/test/scan.h b/test/scan.h index 54714313d97b..a12f6a6bbbd3 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...));