Navigation: Up, Table of Contents, Bibliography, Index, Title Page

## CGAL::Number_type_traits<NT>

### Definition

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>

### Types

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.

Number_type_traits<NT>::Has_gcd
| indicates if the number type NT supports the gcd operation or not.
Number_type_traits<NT>::Has_division
| indicates if the number type NT has operator/ defined or not.
Number_type_traits<NT>::Has_sqrt
| indicates if the number type NT has sqrt defined or not.
Number_type_traits<NT>::Has_exact_ring_operations
| indicates if the number type NT supports ring operations exactly.
Number_type_traits<NT>::Has_exact_division
| indicates if the number type NT supports divisions exactly.
Number_type_traits<NT>::Has_exact_sqrt
| indicates if the number type NT supports the operation sqrt exactly.

Next: Quotient<NT>

Navigation: Table of Contents, Bibliography, Index, Title Page

The CGAL Project . Tue, December 21, 2004 .