| 556 | |
| 557 | template <typename Char> |
| 558 | inline auto vsprintf(basic_string_view<Char> fmt, |
| 559 | typename vprintf_args<Char>::type args) |
| 560 | -> std::basic_string<Char> { |
| 561 | auto buf = basic_memory_buffer<Char>(); |
| 562 | detail::vprintf(buf, fmt, args); |
| 563 | return {buf.data(), buf.size()}; |
| 564 | } |
| 565 | |
| 566 | /** |
| 567 | * Formats `args` according to specifications in `fmt` and returns the result |