VTK  9.0.1
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>
30 template <>
31 struct CompileTimeCheck<true>
32 {
33 };
34 
35 template <typename T>
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
Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.
CompileTimeCheck< std::numeric_limits< T >::is_specialized &&std::numeric_limits< T >::is_integer &&(sizeof(T)==4||sizeof(T)==8)> c