Commit 65ac626c authored by Victor Zverovich's avatar Victor Zverovich

Improve join docs

parent cd0b3f96
...@@ -3178,6 +3178,11 @@ arg_join<It, wchar_t> join(It begin, It end, wstring_view sep) { ...@@ -3178,6 +3178,11 @@ arg_join<It, wchar_t> join(It begin, It end, wstring_view sep) {
std::vector<int> v = {1, 2, 3}; std::vector<int> v = {1, 2, 3};
fmt::print("{}", fmt::join(v, ", ")); fmt::print("{}", fmt::join(v, ", "));
// Output: "1, 2, 3" // 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 \endrst
*/ */
template <typename Range> template <typename Range>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment