mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-30 11:44:29 +03:00
Mar 21st 2024 update
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <sys/types.h>
|
||||
@@ -132,6 +133,18 @@ operator<<(ostream &os, const pair<const First, Second> &printable_pair)
|
||||
return os;
|
||||
}
|
||||
|
||||
template <typename Printable>
|
||||
ostream &
|
||||
operator<<(ostream &os, const vector<Printable> &obj)
|
||||
{
|
||||
bool first = true;
|
||||
for (const auto &val : obj) {
|
||||
os << (first ? "" : ", ") << val;
|
||||
first = false;
|
||||
}
|
||||
return os;
|
||||
}
|
||||
|
||||
} // namespace std
|
||||
|
||||
#endif // __COMMON_H__
|
||||
|
Reference in New Issue
Block a user