1 #ifndef GMPXX_HPP_
2 #define GMPXX_HPP_
3 
4 #include <gmp.h>
5 #include <istream>    // std::istream // IWYU pragma: keep
6 #include <ostream>    // std::ostream // IWYU pragma: keep
7 
8 // used to be protected by: !defined(HAVE_GMPXX) && !defined(HAVE_MPIRXX)
9 
10 /* Provide the C++ I/O functions by ourselves, so that we don't *rely* on
11  * (gmp|mpir)xx
12  *
13  * We make no effort to do this very accurately, though.
14  */
15 extern std::ostream& operator<<(std::ostream& os, mpz_srcptr x);
16 extern std::ostream& operator<<(std::ostream& os, mpq_srcptr x);
17 extern std::istream& operator>>(std::istream& is, mpz_ptr x);
18 extern std::istream& operator>>(std::istream& is, mpq_ptr x);
19 // #endif
20 
21 #endif	/* GMPXX_HPP_ */
22