#include <Truncate.h>
Public Types | |
typedef ACE::If_Then_Else< USE_LEFT, LEFT, typename ACE::If_Then_Else< USE_RIGHT, RIGHT, void >::result_type >::result_type | promote_type |
Public Member Functions | |
ACE_STATIC_CONSTANT (bool, USE_LEFT=((sizeof(LEFT) > sizeof(RIGHT)&&(Sign_Check< LEFT >::is_signed==1||Sign_Check< RIGHT >::is_signed==0))||(sizeof(LEFT)==sizeof(RIGHT)&&((Sign_Check< LEFT >::is_signed==1 &&Sign_Check< RIGHT >::is_signed==1)||(Sign_Check< LEFT >::is_signed==0 &&Sign_Check< RIGHT >::is_signed==0))))) | |
ACE_STATIC_CONSTANT (bool, USE_RIGHT=(sizeof(RIGHT) > sizeof(LEFT)&&(Sign_Check< RIGHT >::is_signed==1||Sign_Check< LEFT >::is_signed==0))) | |
ACE_STATIC_CONSTANT (bool, USABLE=(USE_LEFT||USE_RIGHT)) | |
Static Public Member Functions | |
bool | greater_than (LEFT lhs, RIGHT rhs) |
The comparison operations provided by this structure perform no negative value checking, meaning it is not applicable to all types. Check the value of the USABLE
enumerator to determine if it applies to the types in question.
For internal use only.
This structure is not meant for general use.
Definition at line 300 of file Truncate.h.
|
Definition at line 336 of file Truncate.h. |
|
|
|
|
|
|
|
Definition at line 338 of file Truncate.h.
00339 { 00340 // The explicit cast is assumed to change the type of rhs without 00341 // changing its value. 00342 return 00343 (static_cast<promote_type> (lhs) > static_cast<promote_type> (rhs)); 00344 } |