Is it possible to use operator<< to push strings into a vector. I searched a lot but only find stream examples.
class CStringData
{
vector< string > myData;
// ...
// inline operator << ... ???
};
I want this to use as a simple elipsis (like void AddData(...) ) exchange for
robust parameters.
CStringData abc;
abc << "Hello" << "World";
Is this possible at all ?