Click here to Skip to main content
14,924,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a function to convert a vector to STL string in C++?
I'm looking for something similar to a split/join type of functions available in other languages to split and join arrays.
xenotron 16-Dec-12 18:09pm
Maybe you are looking for something like the join() function of strings in python, maybe something else. Please clarify your question with an example.
Quirkafleeg 17-Dec-12 7:12am
2 things:
1) The title says vector to stream, whereas the description says vector to string. Which is it?
2) A vector of what?

1 solution

Looking at the documentation[^] I don't see any inbuilt function. You could always write one using the iterator to extract each item, but you would need to manage the types as well.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900