aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/marisa-trie/marisa/iostream.h
blob: da5ec77a6cb36263b16597215e48c9f960d40b18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#ifndef MARISA_IOSTREAM_H_
#define MARISA_IOSTREAM_H_

#include <iosfwd>

namespace marisa {

class Trie;

std::istream &read(std::istream &stream, Trie *trie);
std::ostream &write(std::ostream &stream, const Trie &trie);

std::istream &operator>>(std::istream &stream, Trie &trie);
std::ostream &operator<<(std::ostream &stream, const Trie &trie);

}  // namespace marisa

#endif  // MARISA_IOSTREAM_H_