File tree 2 files changed +8
-0
lines changed
Firestore/core/src/firebase/firestore/core 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 22
22
#endif // !defined(__OBJC__)
23
23
24
24
#include < functional>
25
+ #include < iosfwd>
25
26
#include < string>
26
27
#include < utility>
27
28
#include < vector>
@@ -177,6 +178,7 @@ class ViewSnapshot {
177
178
}
178
179
179
180
std::string ToString () const ;
181
+ friend std::ostream& operator<<(std::ostream& out, const ViewSnapshot& value);
180
182
size_t Hash () const ;
181
183
182
184
private:
Original file line number Diff line number Diff line change 16
16
17
17
#include " Firestore/core/src/firebase/firestore/core/view_snapshot.h"
18
18
19
+ #include < ostream>
20
+
19
21
#import " Firestore/Source/Core/FSTQuery.h"
20
22
#import " Firestore/Source/Model/FSTDocument.h"
21
23
#import " Firestore/Source/Model/FSTDocumentSet.h"
178
180
mutated_keys ().size (), sync_state_changed (), excludes_metadata_changes ());
179
181
}
180
182
183
+ std::ostream& operator <<(std::ostream& out, const ViewSnapshot& value) {
184
+ return out << value.ToString ();
185
+ }
186
+
181
187
size_t ViewSnapshot::Hash () const {
182
188
// Note: We are omitting `mutated_keys_` from the hash, since we don't have a
183
189
// straightforward way to compute its hash value. Since `ViewSnapshot` is
You can’t perform that action at this time.
0 commit comments