Skip to content

Commit

Permalink
scan -> scan_to
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 14, 2024
1 parent 123e058 commit ca37503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,9 @@ void vscan(detail::scan_buffer& buf, string_view fmt, scan_args args) {
detail::parse_format_string<false>(fmt, h);
}

// Scans the input and stores the results (in)to args.
template <typename... T>
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...));
Expand Down

0 comments on commit ca37503

Please sign in to comment.