libstdc++: Simplify __format::_Sink::_M_reset
commit17a371d05a796ba8df0300afa4ddc3bdef523f9a
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Aug 2023 17:35:06 +0000 (17 18:35 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 1 Sep 2023 08:55:48 +0000 (1 09:55 +0100)
treeeca680d97e346a6b565006d2db17734949f7a892
parented60ffd814c86a225a4586da649f6e76718490db
libstdc++: Simplify __format::_Sink::_M_reset

Using an offset as the second argument instead of an iterator makes it
easier for callers, as they don't need to create an lvalue span in order
to get an iterator from it for the _M_reset call.

libstdc++-v3/ChangeLog:

* include/std/format (__format::_Sink::_M_reset): Change second
argument from iterator to offset.
libstdc++-v3/include/std/format