Skip to content

Commit

Permalink
fix(basic_io): include iostream
Browse files Browse the repository at this point in the history
  • Loading branch information
1nchy committed Sep 28, 2023
1 parent 0e33774 commit 7a64446
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions basic_io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <tuple>
#include <ostream>
#include <istream>
#include <iostream>
#include <sstream>
#include <vector>

Expand Down Expand Up @@ -38,6 +39,13 @@ template<typename _Tuple> struct tuple_print<_Tuple, 1> {
os << '{' << std::get<0>(t);
}
};

bool _M_end_of_file(std::istream& _is = std::cin) {
return _is.eof() || _is.fail();
};
void _M_reset_cin(std::istream& _is = std::cin) {
_is.clear(); // _is.sync();
};
};

template <typename... _Args> auto operator<<(std::ostream& os, const std::tuple<_Args...>& _t)
Expand Down

0 comments on commit 7a64446

Please sign in to comment.