The associated integral type of any type can be defined with IntegralType.
More...
The associated integral type of any type can be defined with IntegralType.
Any function that operates on the type and naturally returns an integer, regardless whether the input was actually integral, uses the associated integral type as result type. Simple examples for this are get_num() and get_denom() which return the numerator and denominator respectively of a fraction.
◆ carl::IntegralType< cln::cl_I >
struct carl::IntegralType< cln::cl_I > |
States that IntegralType of cln::cl_I is cln::cl_I .
<>
Definition at line 23 of file typetraits.h.
Public Types |
using | type = cln::cl_I |
| A type associated with the type. More...
|
|
◆ type
A type associated with the type.
Definition at line 77 of file typetraits.h.
◆ carl::IntegralType< cln::cl_RA >
struct carl::IntegralType< cln::cl_RA > |
States that IntegralType of cln::cl_RA is cln::cl_I .
<>
Definition at line 24 of file typetraits.h.
Public Types |
using | type = cln::cl_I |
| A type associated with the type. More...
|
|
◆ type
A type associated with the type.
Definition at line 77 of file typetraits.h.
◆ carl::IntegralType< mpq_class >
struct carl::IntegralType< mpq_class > |
States that IntegralType of mpq_class is mpz_class .
<>
Definition at line 24 of file typetraits.h.
Public Types |
using | type = mpz_class |
| A type associated with the type. More...
|
|
◆ type
A type associated with the type.
Definition at line 77 of file typetraits.h.
◆ carl::IntegralType< mpz_class >
struct carl::IntegralType< mpz_class > |
States that IntegralType of mpz_class is mpz_class .
<>
Definition at line 25 of file typetraits.h.
Public Types |
using | type = mpz_class |
| A type associated with the type. More...
|
|
◆ type
A type associated with the type.
Definition at line 77 of file typetraits.h.
◆ carl::IntegralType< float >
struct carl::IntegralType< float > |
◆ carl::IntegralType< double >
struct carl::IntegralType< double > |
◆ carl::IntegralType< long double >
struct carl::IntegralType< long double > |