Classes |
struct | promote_trait< T1, T2 > |
| Promote from T1 and T2 to a type than can hold T1 * T2. More...
|
struct | promote_trait< byte, byte > |
struct | promote_trait< byte, int16 > |
struct | promote_trait< byte, int32 > |
struct | promote_trait< byte, float > |
struct | promote_trait< byte, double > |
struct | promote_trait< byte, long double > |
struct | promote_trait< int16, byte > |
struct | promote_trait< int16, int16 > |
struct | promote_trait< int16, int32 > |
struct | promote_trait< int16, float > |
struct | promote_trait< int16, double > |
struct | promote_trait< int16, long double > |
struct | promote_trait< int32, float > |
struct | promote_trait< int32, double > |
struct | promote_trait< int32, long double > |
struct | promote_trait< float, double > |
struct | promote_trait< float, long double > |
struct | promote_trait< double, long double > |
struct | promoteFromTo< T1, T2 > |
struct | promoteFromTo< T, T > |
struct | promoteFromTo< int16, byte > |
struct | promoteFromTo< int32, byte > |
struct | promoteFromTo< float, byte > |
struct | promoteFromTo< double, byte > |
struct | promoteFromTo< long double, byte > |
struct | promoteFromTo< int32, int16 > |
struct | promoteFromTo< float, int16 > |
struct | promoteFromTo< double, int16 > |
struct | promoteFromTo< long double, int16 > |
struct | promoteFromTo< float, int32 > |
struct | promoteFromTo< double, int32 > |
struct | promoteFromTo< long double, int32 > |
struct | promoteFromTo< double, float > |
struct | promoteFromTo< long double, float > |
struct | promoteFromTo< long double, double > |
struct | round_helper< dst_type, src_type, false > |
struct | round_helper< dst_type, src_type, true > |
struct | convert_helper< dst_type, src_type, false, true > |
struct | convert_helper< dst_type, src_type, false, false > |
struct | convert_helper< dst_type, src_type, true, true > |
struct | convert_helper< dst_type, src_type, true, false > |
Defines |
#define | SPECIALIZE_PROMOTE_TRAIT(T_TYPE, T_PARAMS, T_ARGS) |
| A macro for specializing promote_trait for template types.
|
Functions |
template<class dst_type , class src_type > |
dst_type | clamped_convert (src_type x) |
| Convert safely from src_type to type dst_type, clamping if necessary.
|
template<class dst_type , class src_type > |
dst_type | clamped_rounded_convert (src_type x) |
| Convert safely from src_type to type dst_type, clamping and rounding as needed.
|