mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Simplify vformat_to
This commit is contained in:
parent
e3710ab972
commit
b85e9ac38b
@ -1760,8 +1760,8 @@ template <typename OutputIt, typename S, typename Char = char_t<S>,
|
|||||||
OutputIt vformat_to(
|
OutputIt vformat_to(
|
||||||
OutputIt out, const S& format_str,
|
OutputIt out, const S& format_str,
|
||||||
basic_format_args<buffer_context<type_identity_t<Char>>> args) {
|
basic_format_args<buffer_context<type_identity_t<Char>>> args) {
|
||||||
using container = remove_reference_t<decltype(internal::get_container(out))>;
|
auto& c = internal::get_container(out);
|
||||||
internal::container_buffer<container> buf((internal::get_container(out)));
|
internal::container_buffer<remove_reference_t<decltype(c)>> buf(c);
|
||||||
internal::vformat_to(buf, to_string_view(format_str), args);
|
internal::vformat_to(buf, to_string_view(format_str), args);
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user