We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6c655 commit 685863fCopy full SHA for 685863f
debug.h
@@ -20,6 +20,22 @@ std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) {
20
return os;
21
}
22
23
+template <class T>
24
+std::ostream& operator<<(std::ostream& os, const std::set<T>& v) {
25
+ bool c = false;
26
+ os << "{";
27
+ for (const T &x : v) {
28
+ if (c) {
29
+ os << ",";
30
+ } else {
31
+ c = true;
32
+ }
33
+ os << x;
34
35
+ os << "}";
36
+ return os;
37
+}
38
+
39
template <typename T1, typename T2>
40
std::ostream& operator<<(std::ostream& os, const std::map<T1, T2>& m) {
41
bool c = false;
0 commit comments