23 template <
typename VEC>
    26     std::string ret = 
"[";
    27     const size_t N = V.size();
    28     for (
size_t i = 0; i < N; i++)
    31         if (i != (N - 1)) ret += 
",";
 std::string std::string format(std::string_view fmt, ARGS &&... args)
 
void printf_vector(const char *fmt, const std::vector< T > &V)
Prints a vector in the format [A,B,C,...] to std::cout, and the fmt string for each vector element...
 
std::string sprintf_vector(const char *fmt, const VEC &V)
Generates a string for a vector in the format [A,B,C,...] to std::cout, and the fmt string for each v...