[base] JoinAny signature is changed, template parameter is replaced by std::function

This commit is contained in:
Arsentiy Milchakov 2019-11-19 11:45:46 +03:00 committed by Tatiana Yan
parent d37423533b
commit 9b9a096054

View file

@ -571,9 +571,10 @@ typename Container::value_type JoinStrings(Container const & container, Delimite
return JoinStrings(begin(container), end(container), delimiter);
}
template <typename Iterator, typename Delimiter, typename Converter>
template <typename Iterator, typename Delimiter>
std::string JoinAny(Iterator first, Iterator last, Delimiter const & delimiter,
Converter const & converter)
std::function<
std::string (typename Iterator::value_type const & v)> const & converter)
{
if (first == last)
return {};