join overloads

Synopses

Declared in <fmt/ranges.h>

Returns an object that formats std::initializer_list with elements separated by sep.

template<typename T>
join_view<T const*, T const*>
join(
    std::initializer_list<T> list,
    string_view sep);
template<typename T>
join_view<T const*, T const*, wchar_t>
join(
    std::initializer_list<T> list,
    wstring_view sep);

Returns an object that formats std::tuple with elements separated by sep.

template<typename Tuple>
constexpr
tuple_join_view<Tuple, char>
join(
    Tuple const& tuple,
    string_view sep);
template<typename Tuple>
tuple_join_view<Tuple, wchar_t>
join(
    Tuple const& tuple,
    basic_string_view<wchar_t> sep);

Returns a view that formats range with elements separated by sep.

Returns a view that formats the iterator range [begin, end) with elements separated by sep.

template<
    typename It,
    typename Sentinel>
join_view<It, Sentinel>
join(
    It begin,
    Sentinel end,
    string_view sep);
template<
    typename It,
    typename Sentinel>
join_view<It, Sentinel, wchar_t>
join(
    It begin,
    Sentinel end,
    wstring_view sep);

Created with MrDocs