From 65ac626c5856f5aad1f1542e79407a6714357043 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 12 Jan 2020 07:26:16 -0800 Subject: [PATCH] Improve join docs --- include/fmt/format.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index ee8ab92f..50cf37c9 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3178,6 +3178,11 @@ arg_join join(It begin, It end, wstring_view sep) { std::vector v = {1, 2, 3}; fmt::print("{}", fmt::join(v, ", ")); // Output: "1, 2, 3" + + ``fmt::join`` applies passed format specifiers to the range elements:: + + fmt::print("{:02}", fmt::join(v, ", ")); + // Output: "01, 02, 03" \endrst */ template