STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | List of all members
msl::utilities::details::BinaryMethod< T, U > Class Template Reference

#include <safeint_internal.h>

Public Types

enum  { method }
 

Member Enumeration Documentation

template<typename T , typename U >
anonymous enum
Enumerator
method 
2754  {
2755  // If both operands are unsigned OR
2756  // return type is smaller than rhs OR
2757  // return type is larger and rhs is unsigned
2758  // Then binary operations won't produce unexpected results
2759  method = ( sizeof( T ) <= sizeof( U ) ||
2760  SafeIntCompare< T, U >::isBothUnsigned ||
2761  !IntTraits< U >::isSigned ) ? BinaryState_OK :
2762  IntTraits< U >::isInt8 ? BinaryState_Int8 :
2763  IntTraits< U >::isInt16 ? BinaryState_Int16
2765  };
Definition: safeint_internal.h:2746
Definition: safeint_internal.h:2744
Definition: safeint_internal.h:2745
Definition: safeint_internal.h:2759
Definition: safeint_internal.h:2747

The documentation for this class was generated from the following file: