|
Sierra Toolkit
Version of the Day
|
00001 /*------------------------------------------------------------------------*/ 00002 /* Copyright 2010 Sandia Corporation. */ 00003 /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */ 00004 /* license for use of this work by or on behalf of the U.S. Government. */ 00005 /* Export of this program may require a license from the */ 00006 /* United States Government. */ 00007 /*------------------------------------------------------------------------*/ 00008 00009 #ifndef stk_util_util_SameType_hpp 00010 #define stk_util_util_SameType_hpp 00011 00012 namespace stk_classic { 00013 00014 //---------------------------------------------------------------------- 00020 template<typename T1, typename T2> 00021 struct SameType 00022 { enum { value = false }; }; 00023 00024 template<typename T> 00025 struct SameType<T,T> 00026 { enum { value = true }; }; 00027 00028 //---------------------------------------------------------------------- 00029 00030 } //namespace stk_classic 00031 00032 #endif 00033