ACE_Utils::Safe_Comparator< LEFT, RIGHT, true, false > Struct Template Reference

#include <Truncate.h>

List of all members.

Static Public Member Functions

bool greater_than (LEFT lhs, RIGHT rhs)

template<typename LEFT, typename RIGHT>
struct ACE_Utils::Safe_Comparator< LEFT, RIGHT, true, false >


Member Function Documentation

template<typename LEFT, typename RIGHT>
bool ACE_Utils::Safe_Comparator< LEFT, RIGHT, true, false >::greater_than LEFT  lhs,
RIGHT  rhs
[inline, static]
 

Definition at line 232 of file Truncate.h.

00233     {
00234       // Prevent wrap-around when casting to unsigned.
00235       if (lhs < 0)
00236         return false;  // since rhs is always positive
00237       else
00238         {
00239           // Implicit promotion of unsigned LEFT and RIGHT types here.
00240           return To_Unsigned<LEFT>() (lhs) > rhs;
00241         }
00242     }


The documentation for this struct was generated from the following file:
Generated on Sun Jan 27 12:59:48 2008 for ACE by doxygen 1.3.6