Sierra Toolkit
Version of the Day
SameType.hpp
1
/*------------------------------------------------------------------------*/
2
/* Copyright 2010 Sandia Corporation. */
3
/* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
4
/* license for use of this work by or on behalf of the U.S. Government. */
5
/* Export of this program may require a license from the */
6
/* United States Government. */
7
/*------------------------------------------------------------------------*/
8
9
#ifndef stk_util_util_SameType_hpp
10
#define stk_util_util_SameType_hpp
11
12
namespace
stk_classic
{
13
14
//----------------------------------------------------------------------
20
template
<
typename
T1,
typename
T2>
21
struct
SameType
22
{
enum
{ value =
false
}; };
23
24
template
<
typename
T>
25
struct
SameType
<T,T>
26
{
enum
{ value =
true
}; };
27
28
//----------------------------------------------------------------------
29
30
}
//namespace stk_classic
31
32
#endif
33
stk_classic::SameType
Member enum { value = ... }; is true if T1 and T2 are the same type.
Definition:
SameType.hpp:21
stk_classic
Sierra Toolkit.
Definition:
AlgorithmRunner.cpp:16
stk_util
stk_util
util
SameType.hpp
Generated by
1.8.14