Can a std::istream be split with more than one delimiters?
I want a std::istream
to be split using commas(,
) and EOL(n
) until a certain number of the mentioned delimiters are met and the result be stored inside std::vector<std::string>
type and the rest of the std::istream
be untouched.
Can std::istream be split up with a delimiter?
I have the separate_by_delimiter
function which is used inside another function outside_func
Is there a unget() method for putting back everything extracted by std::getline back into an istream?
I am extracting each full row of a csv file using std::getline
: