ACE_Utils::Safe_Comparator< LEFT, RIGHT, false, true > 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, false, true >

Definition at line 247 of file Truncate.h.


Member Function Documentation

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

Definition at line 249 of file Truncate.h.

00250     {
00251       // Prevent wrap-around when casting to unsigned.
00252       if (rhs < 0)
00253         return true;  // since lhs is always positive
00254       else
00255         {
00256           // Implicit promotion of unsigned LEFT and RIGHT types here.
00257           return lhs > To_Unsigned<RIGHT>() (rhs);
00258         }
00259     }


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