diff options
Diffstat (limited to 'QA/Checker')
-rw-r--r-- | QA/Checker/IO.cpp | 15 | ||||
-rw-r--r-- | QA/Checker/IO.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/QA/Checker/IO.cpp b/QA/Checker/IO.cpp index 659e16e..d9eadd6 100644 --- a/QA/Checker/IO.cpp +++ b/QA/Checker/IO.cpp @@ -40,3 +40,18 @@ std::ostream& operator<<(std::ostream& os, const Swift::SafeByteArray& s) { return os; } +std::ostream& operator<<(std::ostream& os, const std::vector<int>& s) { + for (std::vector<int>::const_iterator i = s.begin(); i != s.end(); ++i) { + os << *i << " "; + } + os << std::endl; + return os; +} + +std::ostream& operator<<(std::ostream& os, const std::vector<size_t>& s) { + for (std::vector<size_t>::const_iterator i = s.begin(); i != s.end(); ++i) { + os << *i << " "; + } + os << std::endl; + return os; +} diff --git a/QA/Checker/IO.h b/QA/Checker/IO.h index a369b56..2545d24 100644 --- a/QA/Checker/IO.h +++ b/QA/Checker/IO.h @@ -11,3 +11,5 @@ std::ostream& operator<<(std::ostream& os, const Swift::ByteArray& s); std::ostream& operator<<(std::ostream& os, const Swift::SafeByteArray& s); +std::ostream& operator<<(std::ostream& os, const std::vector<int>& s); +std::ostream& operator<<(std::ostream& os, const std::vector<size_t>& s); |