2016-02-08 05:56:52 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <sstream>
|
|
|
|
#include <iterator>
|
|
|
|
|
|
|
|
namespace utils
|
|
|
|
{
|
|
|
|
|
2016-08-10 16:39:02 +08:00
|
|
|
std::string join(const std::vector<std::string>& strings,
|
|
|
|
const char *separator);
|
2016-02-08 05:56:52 +08:00
|
|
|
|
|
|
|
template<typename... Args>
|
|
|
|
std::string prints(const Args&... args)
|
|
|
|
{
|
|
|
|
std::vector<std::string> strings = {args...};
|
|
|
|
return join(strings, " ");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|