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 
2750  {
2751  // If both operands are unsigned OR
2752  // return type is smaller than rhs OR
2753  // return type is larger and rhs is unsigned
2754  // Then binary operations won't produce unexpected results
2755  method = ( sizeof( T ) <= sizeof( U ) ||
2756  SafeIntCompare< T, U >::isBothUnsigned ||
2757  !IntTraits< U >::isSigned ) ? BinaryState_OK :
2758  IntTraits< U >::isInt8 ? BinaryState_Int8 :
2759  IntTraits< U >::isInt16 ? BinaryState_Int16
2761  };
Definition: safeint_internal.h:2755
Definition: safeint_internal.h:2742
Definition: safeint_internal.h:2740
Definition: safeint_internal.h:2741
Definition: safeint_internal.h:2743

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