VTK-m
2.0
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
g
v
Variables
Typedefs
Macros
b
c
d
e
i
k
m
n
p
q
r
s
t
u
v
x
z
vtkm
StaticAssert.h
Go to the documentation of this file.
1
//============================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//============================================================================
10
#ifndef vtk_m_StaticAssert_h
11
#define vtk_m_StaticAssert_h
12
13
14
#include <type_traits>
15
16
#define VTKM_STATIC_ASSERT(condition) \
17
static_assert((condition), "Failed static assert: " #condition)
18
#define VTKM_STATIC_ASSERT_MSG(condition, message) static_assert((condition), message)
19
20
namespace
vtkm
21
{
22
23
template
<
bool
noError>
24
struct
ReadTheSourceCodeHereForHelpOnThisError
;
25
26
template
<>
27
struct
ReadTheSourceCodeHereForHelpOnThisError
<true> : std::true_type
28
{
29
};
30
31
}
// namespace vtkm
32
33
#define VTKM_READ_THE_SOURCE_CODE_FOR_HELP(noError) \
34
VTKM_STATIC_ASSERT(vtkm::ReadTheSourceCodeHereForHelpOnThisError<noError>::value)
35
36
#endif //vtk_m_StaticAssert_h
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
vtkm::ReadTheSourceCodeHereForHelpOnThisError
Definition:
StaticAssert.h:24
Generated by
1.8.17