22 lines
365 B
C++
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, " ");
|
|
}
|
|
|
|
}
|