Sierra Toolkit
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
StaticAssert.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_StaticAssert_hpp
10
#define STK_UTIL_UTIL_StaticAssert_hpp
11
12
namespace
stk {
13
14
//----------------------------------------------------------------------
23
template
<
bool
expression>
struct
StaticAssert
{};
24
25
template
<>
struct
StaticAssert
<true> {
26
enum
{ OK =
true
};
27
static
bool
ok() {
return
true ; }
28
};
29
30
//----------------------------------------------------------------------
31
32
}
//namespace stk
33
34
#endif // STK_UTIL_UTIL_StaticAssert_hpp
35
stk::StaticAssert
Compile-time assertionIf the compile-time expression is true then defines.
Definition:
StaticAssert.hpp:23
stk_util
stk_util
util
StaticAssert.hpp
Generated by
1.8.5