Files
flippr-code/FlippR-Driver/src/utility/helper_functions.hpp
Jonas Zeunert 6a403d2218 Remove Andi
2022-02-24 20:50:31 +01:00

25 lines
450 B
C++

/*
* helper_functions.hpp
*
* Created on: Jan 16, 2020
* Author: Johannes Wendel, Jonas Zeunert
*/
#include <string>
#include <sstream>
namespace help
{
template<typename Container>
std::string make_list_string(Container container)
{
std::stringstream ss;
for(auto & elem : container)
{
ss << std::to_string(elem) << ", ";
}
ss << std::string(2, 0x08);
return std::string("[") + ss.str() + "]";
}
}