memgraph/include/utils/string/join.hpp
2016-08-10 09:39:02 +01:00

22 lines
365 B
C++

#pragma once
#include <string>
#include <vector>
#include <sstream>
#include <iterator>
namespace utils
{
std::string join(const std::vector<std::string>& strings,
const char *separator);
template<typename... Args>
std::string prints(const Args&... args)
{
std::vector<std::string> strings = {args...};
return join(strings, " ");
}
}