I am wondering if there is way that std::cout automatically will insert some predefined value between printed sequences.
std::cout
For example:
st
A C++17 fold expression with the comma operator can create a nice one-liner:
[](auto &&...xs){ ((std::cout << xs << ',') , ...); }(2,3,33,45);