ACE
6.2.0
|
Truncate value of type FROM
to value of type TO
.
More...
#include <Truncate.h>
Public Types | |
typedef ACE::If_Then_Else < MAX_FROM_GT_MAX_TO, FROM, TO > ::result_type | comp_to_type |
typedef ACE::If_Then_Else < MAX_FROM_GT_MAX_TO, Fast_Comparator< FROM, comp_to_type >, typename Comparator< FROM, comp_to_type > ::comp_type >::result_type | comparator |
Public Member Functions | |
ACE_STATIC_CONSTANT (bool, MAX_FROM_GT_MAX_TO=(sizeof(FROM) > sizeof(TO)||(sizeof(FROM)==sizeof(TO)&&Sign_Check< FROM >::is_signed==0))) | |
TO | operator() (FROM val) |
Truncate value of type FROM
to value of type TO
.
Truncate a value of type FROM
to value of type TO
, if the value is larger than the maximum of value of type TO
.
typedef ACE::If_Then_Else< MAX_FROM_GT_MAX_TO, FROM, TO>::result_type ACE_Utils::Truncator< FROM, TO >::comp_to_type |
typedef ACE::If_Then_Else< MAX_FROM_GT_MAX_TO, Fast_Comparator<FROM, comp_to_type>, typename Comparator<FROM, comp_to_type>::comp_type>::result_type ACE_Utils::Truncator< FROM, TO >::comparator |
ACE_Utils::Truncator< FROM, TO >::ACE_STATIC_CONSTANT | ( | bool | , |
MAX_FROM_GT_MAX_TO | = (sizeof(FROM) > sizeof(TO)||(sizeof(FROM)==sizeof(TO)&&Sign_Check< FROM >::is_signed==0)) |
||
) |
|
inline |
Truncate a value of type FROM
to value of type TO
, if the value is larger than the maximum of value of type TO
.