PPL  1.2
mp_std_bits_inlines.hh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void swap (mpz_class &x, mpz_class &y)
 Swaps x with y. More...
 
void swap (mpq_class &x, mpq_class &y)
 Swaps x with y. More...
 

Function Documentation

void swap ( mpz_class &  x,
mpz_class &  y 
)
inline

Swaps x with y.

Definition at line 29 of file mp_std_bits_inlines.hh.

29  {
30  mpz_swap(x.get_mpz_t(), y.get_mpz_t());
31 }
void swap ( mpq_class &  x,
mpq_class &  y 
)
inline

Swaps x with y.

Definition at line 34 of file mp_std_bits_inlines.hh.

34  {
35  mpq_swap(x.get_mpq_t(), y.get_mpq_t());
36 }