I am wondering if there is way that std::cout automatically will insert some predefined value between printed sequences.
std::cout
For example:
st
How about using the ostream_iterator
int main() { std::vector data {2,3,33,45}; std::copy(std::begin(data), std::end(data), std::ostream_iterator(std::cout, " ")); std::cout << "\n"; }