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

#include <Truncate.h>

List of all members.

Static Public Member Functions

static bool greater_than (LEFT lhs, RIGHT rhs)


Detailed Description

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

Definition at line 230 of file Truncate.h.


Member Function Documentation

template<typename LEFT, typename RIGHT>
static 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 Tue Feb 2 17:36:07 2010 for ACE by  doxygen 1.4.7