VTK
9.0.1
Common
Core
vtkAtomicTypeConcepts.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAtomicTypeConcepts.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
16
#ifndef vtkAtomicTypeConcepts_h
17
#define vtkAtomicTypeConcepts_h
18
19
#include <limits>
20
21
namespace
vtk
22
{
23
namespace
atomic
24
{
25
namespace
detail
26
{
27
28
template
<
bool
>
29
struct
CompileTimeCheck
;
30
template
<>
31
struct
CompileTimeCheck
<true>
32
{
33
};
34
35
template
<
typename
T>
36
struct
IntegralType
37
{
38
CompileTimeCheck<std::numeric_limits<T>::is_specialized
&& std::numeric_limits<T>::is_integer &&
39
(
sizeof
(T) == 4 ||
sizeof
(T) == 8)>
40
c;
41
};
42
43
}
// detail
44
}
// atomic
45
}
// vtk
46
47
#endif
48
// VTK-HeaderTest-Exclude: vtkAtomicTypeConcepts.h
vtk
Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.
Definition:
vtkAtomicTypeConcepts.h:21
vtk::atomic::detail::CompileTimeCheck
Definition:
vtkAtomicTypeConcepts.h:29
detail
Definition:
vtkGenericDataArrayLookupHelper.h:31
vtk::atomic::detail::IntegralType
Definition:
vtkAtomicTypeConcepts.h:36
Generated on Tue Mar 16 2021 19:49:01 for VTK by
1.8.13