Template Function fmt::v6::join(const Range&, string_view)

Function Documentation

template<typename Range>
arg_join<internal::iterator_t<const Range>, char> fmt::v6::join(const Range &range, string_view sep)

Returns an object that formats range with elements separated by sep.

Example*:

std::vector<int> v = {1, 2, 3};
fmt::print("{}", fmt::join(v, ", "));
// Output: "1, 2, 3"