Strings.h 334 B

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