PPL  1.2
mp_std_bits_defs.hh File Reference
#include <gmpxx.h>
#include <limits>
#include "mp_std_bits_inlines.hh"
Include dependency graph for mp_std_bits_defs.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  std::numeric_limits< mpz_class >
 Specialization of std::numeric_limits. More...
 
class  std::numeric_limits< mpq_class >
 Specialization of std::numeric_limits. More...
 

Namespaces

 std
 The standard C++ namespace.
 

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 }