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) | 
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. 
Definition at line 399 of file Truncate.h.
      
  | 
  |||||
| 
 
 Definition at line 411 of file Truncate.h.  | 
  
      
  | 
  |||||
| 
 
 Definition at line 420 of file Truncate.h.  | 
  
      
  | 
  ||||||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||
| 
 
Truncate a value of type  Definition at line 424 of file Truncate.h. References ACE_Numeric_Limits< T >::max(). 
 00425     {
00426       return
00427         (comparator::greater_than (val, ACE_Numeric_Limits<TO>::max ())
00428          ? ACE_Numeric_Limits<TO>::max ()
00429          : static_cast<TO> (val));
00430     }
 | 
  
 
1.3.6