Move misplaced join overloads to fmt/ranges.h

This commit is contained in:
Victor Zverovich
2024-01-01 16:28:59 -08:00
parent 0b39d67103
commit 50565f9853
8 changed files with 123 additions and 124 deletions
+7
View File
@@ -11,6 +11,7 @@
#include <cwchar>
#include "format.h"
#include "ranges.h"
#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
# include <locale>
@@ -96,6 +97,12 @@ auto join(std::initializer_list<T> list, wstring_view sep)
return join(std::begin(list), std::end(list), sep);
}
template <typename... T>
auto join(const std::tuple<T...>& tuple, basic_string_view<wchar_t> sep)
-> tuple_join_view<wchar_t, T...> {
return {tuple, sep};
}
template <typename Char, FMT_ENABLE_IF(!std::is_same<Char, char>::value)>
auto vformat(basic_string_view<Char> format_str,
basic_format_args<buffer_context<type_identity_t<Char>>> args)