The class Number_type_traits<NT> can be used to determine if a certain number type supports certain operations and thus to determine which number type concept it is a model of. It also specifies if the number type supports some operations exactly.
#include <CGAL/Number_type_traits.h>
The following types are each set to either CGAL::Tag_true or CGAL::Tag_false depending on whether the indicated operation is supported or not by the number type NT.
| |
indicates if the number type NT supports the
gcd operation or not.
| |
| |
indicates if the number type NT has
operator/ defined or not.
| |
| |
indicates if the number type NT
has sqrt defined or not.
| |
| |
indicates if the number type
NT supports ring operations exactly.
| |
| |
indicates if the number type
NT supports divisions exactly.
| |
| |
indicates if the number type NT
supports the operation sqrt exactly.
|