xref: /aosp_15_r20/external/marisa-trie/include/marisa/iostream.h (revision ab8db090fce404b23716c4c9194221ee27efe31c)
1 #ifndef MARISA_IOSTREAM_H_
2 #define MARISA_IOSTREAM_H_
3 
4 #include <iosfwd>
5 
6 namespace marisa {
7 
8 class Trie;
9 
10 std::istream &read(std::istream &stream, Trie *trie);
11 std::ostream &write(std::ostream &stream, const Trie &trie);
12 
13 std::istream &operator>>(std::istream &stream, Trie &trie);
14 std::ostream &operator<<(std::ostream &stream, const Trie &trie);
15 
16 }  // namespace marisa
17 
18 #endif  // MARISA_IOSTREAM_H_
19