cgal/Modular_arithmetic/include/CGAL/Modular.h

32 lines
757 B
C++

//Author(s) : Michael Hemmer <mhemmer@uni-mainz.de>
/*! \file CGAL/Modular.h
\brief Defines the class CGAL::Modular and CGAL::Modular_traits.
Provides the \c CGAL::Modular_traits specialization for the build in number
types.
*/
#ifndef CGAL_MODULAR_H
#define CGAL_MODULAR_H 1
#include <CGAL/basic.h>
#include <CGAL/Modular_arithmetic/Modular_type.h>
CGAL_BEGIN_NAMESPACE
/*! \brief Specialization of CGAL::NT_traits for \c Modular, which is a model
* of the \c Field concept.
* \ingroup CGAL_NT_traits_spec
*/
template <>
struct Algebraic_structure_traits<Modular>
: public Algebraic_structure_traits_base< Modular ,Field_tag >{
typedef CGAL::Tag_true Is_exact;
};
CGAL_END_NAMESPACE
#endif //#ifnedef CGAL_MODULAR_H 1