| 580 | |
| 581 | template <typename Char> |
| 582 | inline auto vsprintf(basic_string_view<Char> fmt, |
| 583 | typename vprintf_args<Char>::type args) |
| 584 | -> std::basic_string<Char> { |
| 585 | auto buf = basic_memory_buffer<Char>(); |
| 586 | detail::vprintf(buf, fmt, args); |
| 587 | return {buf.data(), buf.size()}; |
| 588 | } |
| 589 | |
| 590 | /** |
| 591 | * Formats `args` according to specifications in `fmt` and returns the result |