]> git.saurik.com Git - apt.git/blobdiff - test/libapt/assert.h
cppcheck complains about some possible speed improvements which could be
[apt.git] / test / libapt / assert.h
index 92b662dfa75cad8249e349929af24526a53b9725..fae9b6c6423c33fa0c56402735fa0c5e7ad904c0 100644 (file)
@@ -53,3 +53,11 @@ void assertEqualsOr2(int const &expect1, int const &expect2, unsigned int const
        assertEqualsOr2<unsigned int const&, unsigned int const&>(expect1, expect2, get, line);
 }
 
+
+// simple helper to quickly output a vectors
+template < typename X >
+void dumpVector(X vec) {
+       for (typename X::const_iterator v = vec.begin();
+            v != vec.end(); ++v)
+               std::cout << *v << std::endl;
+}