[Gmp-commit] /var/hg/gmp: More const in the C++ doc.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Jul 17 18:30:13 CEST 2013
details: /var/hg/gmp/rev/067992c65d82
changeset: 15875:067992c65d82
user: Marc Glisse <marc.glisse at inria.fr>
date: Wed Jul 17 18:29:49 2013 +0200
description:
More const in the C++ doc.
diffstat:
doc/gmp.texi | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (68 lines):
diff -r 32c84d691d12 -r 067992c65d82 doc/gmp.texi
--- a/doc/gmp.texi Wed Jul 17 17:43:06 2013 +0200
+++ b/doc/gmp.texi Wed Jul 17 18:29:49 2013 +0200
@@ -6155,7 +6155,7 @@
Libraries}), which is built if C++ support is enabled (@pxref{Build Options}).
Prototypes are available from @code{<gmp.h>}.
- at deftypefun ostream& operator<< (ostream& @var{stream}, mpz_t @var{op})
+ at deftypefun ostream& operator<< (ostream& @var{stream}, const mpz_t @var{op})
Print @var{op} to @var{stream}, using its @code{ios} formatting settings.
@code{ios::width} is reset to 0 after output, the same as the standard
@code{ostream operator<<} routines do.
@@ -6165,7 +6165,7 @@
etc, which instead give twos complement.
@end deftypefun
- at deftypefun ostream& operator<< (ostream& @var{stream}, mpq_t @var{op})
+ at deftypefun ostream& operator<< (ostream& @var{stream}, const mpq_t @var{op})
Print @var{op} to @var{stream}, using its @code{ios} formatting settings.
@code{ios::width} is reset to 0 after output, the same as the standard
@code{ostream operator<<} routines do.
@@ -6178,7 +6178,7 @@
both the numerator and denominator (if the denominator is required).
@end deftypefun
- at deftypefun ostream& operator<< (ostream& @var{stream}, mpf_t @var{op})
+ at deftypefun ostream& operator<< (ostream& @var{stream}, const mpf_t @var{op})
Print @var{op} to @var{stream}, using its @code{ios} formatting settings.
@code{ios::width} is reset to 0 after output, the same as the standard
@code{ostream operator<<} routines do.
@@ -6631,7 +6631,7 @@
(@pxref{Assigning Integers}).
@end deftypefun
- at deftypefun explicit mpz_class::mpz_class (mpz_t @var{z})
+ at deftypefun explicit mpz_class::mpz_class (const mpz_t @var{z})
Construct an @code{mpz_class} from an @code{mpz_t}. The value in @var{z} is
copied into the new @code{mpz_class}, there won't be any permanent association
between it and @var{z}.
@@ -6731,7 +6731,7 @@
@end example
@end deftypefun
- at deftypefun explicit mpq_class::mpq_class (mpq_t @var{q})
+ at deftypefun explicit mpq_class::mpq_class (const mpq_t @var{q})
Construct an @code{mpq_class} from an @code{mpq_t}. The value in @var{q} is
copied into the new @code{mpq_class}, there won't be any permanent association
between it and @var{q}.
@@ -6840,8 +6840,8 @@
@end example
@end deftypefun
- at deftypefun explicit mpf_class::mpf_class (mpf_t @var{f})
- at deftypefunx {} mpf_class::mpf_class (mpf_t @var{f}, mp_bitcnt_t @var{prec})
+ at deftypefun explicit mpf_class::mpf_class (const mpf_t @var{f})
+ at deftypefunx {} mpf_class::mpf_class (const mpf_t @var{f}, mp_bitcnt_t @var{prec})
Construct an @code{mpf_class} from an @code{mpf_t}. The value in @var{f} is
copied into the new @code{mpf_class}, there won't be any permanent association
between it and @var{f}.
@@ -10308,7 +10308,7 @@
@example
struct __gmp_binary_plus
@{
- static void eval(mpf_t f, mpf_t g, mpf_t h) @{ mpf_add(f, g, h); @}
+ static void eval(mpf_t f, const mpf_t g, const mpf_t h) @{ mpf_add(f, g, h); @}
@};
@end example
More information about the gmp-commit
mailing list