summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2011-09-21 15:05:45 +0200
committerMarc Glisse <marc.glisse@inria.fr>2011-09-21 15:05:45 +0200
commita6250b15fb8880ba047624a16693285e5284825a (patch)
tree3fabc4506522a1cd0c79ebcf5ccbc0b32fcab7e7 /doc
parentaf14b70ec142e9ce184456a40ee322cc1370c155 (diff)
downloadgmp-a6250b15fb8880ba047624a16693285e5284825a.tar.gz
Add swap functions to gmpxx.
Diffstat (limited to 'doc')
-rw-r--r--doc/gmp.texi11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/gmp.texi b/doc/gmp.texi
index 60022bbd8..7b3fa5de6 100644
--- a/doc/gmp.texi
+++ b/doc/gmp.texi
@@ -6540,7 +6540,7 @@ mpz_fdiv_q (q.get_mpz_t(), a.get_mpz_t(), d.get_mpz_t());
@end example
@end deftypefun
-@deftypefun mpz_class abs (mpz_class @var{op1})
+@deftypefun mpz_class abs (mpz_class @var{op})
@deftypefunx int cmp (mpz_class @var{op1}, type @var{op2})
@deftypefunx int cmp (type @var{op1}, mpz_class @var{op2})
@maybepagebreak
@@ -6561,6 +6561,9 @@ mpz_fdiv_q (q.get_mpz_t(), a.get_mpz_t(), d.get_mpz_t());
@deftypefunx int mpz_class::set_str (const string& @var{str}, int @var{base})
@deftypefunx int sgn (mpz_class @var{op})
@deftypefunx mpz_class sqrt (mpz_class @var{op})
+@maybepagebreak
+@deftypefunx void mpz_class::swap (mpz_class& @var{op})
+@deftypefunx void swap (mpz_class& @var{op1}, mpz_class& @var{op2})
These functions provide a C++ class interface to the corresponding GMP C
routines.
@@ -6632,6 +6635,9 @@ form, and will return results in canonical form.
@deftypefunx int mpq_class::set_str (const char *@var{str}, int @var{base})
@deftypefunx int mpq_class::set_str (const string& @var{str}, int @var{base})
@deftypefunx int sgn (mpq_class @var{op})
+@maybepagebreak
+@deftypefunx void mpq_class::swap (mpq_class& @var{op})
+@deftypefunx void swap (mpq_class& @var{op1}, mpq_class& @var{op2})
These functions provide a C++ class interface to the corresponding GMP C
routines.
@@ -6774,6 +6780,9 @@ with the builtin float types.
@deftypefunx int mpf_class::set_str (const string& @var{str}, int @var{base})
@deftypefunx int sgn (mpf_class @var{op})
@deftypefunx mpf_class sqrt (mpf_class @var{op})
+@maybepagebreak
+@deftypefunx void mpf_class::swap (mpf_class& @var{op})
+@deftypefunx void swap (mpf_class& @var{op1}, mpf_class& @var{op2})
@deftypefunx mpf_class trunc (mpf_class @var{op})
These functions provide a C++ class interface to the corresponding GMP C
routines.