17 lines
326 B
C++
17 lines
326 B
C++
#include "if_constexpr.hpp"
|
|
|
|
#include <sstream>
|
|
|
|
namespace cpp17 {
|
|
|
|
auto stringify_ints(const std::vector<int>& data) -> std::string {
|
|
auto oss = std::stringstream();
|
|
for (auto i = 0uz; i < data.size(); ++i) {
|
|
if (i > 0) oss << ",";
|
|
oss << data[i];
|
|
}
|
|
return oss.str();
|
|
}
|
|
|
|
} // namespace cpp17
|