Overloading operator << - C++
问题 Background I have a container class which uses vector<std::string> internally. I have provided a method AddChar(std::string) to this wrapper class which does a push_back() to the internal vector. In my code, I have to add multiple items to the container some time. For that I have to use container.AddChar("First"); container.AddChar("Second"); This makes the code larger. So to make it more easier, I plan to overload operator <<. So that I can write container << "First" << "Second" and two