I am wondering if there is way that std::cout automatically will insert some predefined value between printed sequences.
std::cout
For example:
st
Not quite the same thing, but:
#include #include #include int main() { std::array data = { 1, 2, 3 }; std::ostream_iterator out(std::cout, " "); std::copy(data.begin(), data.end(), out); std::cout << '\n'; return 0; }