11 #ifndef META_IO_BINARY_H_
12 #define META_IO_BINARY_H_
30 out.write(reinterpret_cast<const char*>(&elem),
sizeof(T));
38 inline void write_binary(std::ostream& out,
const std::string& str)
40 out.write(str.c_str(), str.size() + 1);
51 in.read(reinterpret_cast<char*>(&elem),
sizeof(T));
61 std::getline(in, str,
'\0');