Strings.h 350 B

12345678910111213141516171819202122
  1. #ifndef STRINGS_H
  2. #define STRINGS_H
  3. #include <string>
  4. #include <vector>
  5. class Strings: public std::vector<std::string>
  6. {
  7. public:
  8. Strings operator+=(const Strings& s2)
  9. {
  10. for (const std::string& s : s2)
  11. push_back(s);
  12. return *this;
  13. }
  14. Strings operator+=(const std::string& s)
  15. {
  16. push_back(s);
  17. return *this;
  18. }
  19. };
  20. #endif