mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Improve join docs
This commit is contained in:
parent
cd0b3f9695
commit
65ac626c58
@ -3178,6 +3178,11 @@ arg_join<It, wchar_t> join(It begin, It end, wstring_view sep) {
|
||||
std::vector<int> 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 <typename Range>
|
||||
|
Loading…
Reference in New Issue
Block a user