VTK
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 #include <limits>
17 
18 namespace vtk
19 {
20 namespace atomic
21 {
22 namespace detail
23 {
24 
25 template <bool> struct CompileTimeCheck;
26 template <> struct CompileTimeCheck<true> {};
27 
28 template <typename T> struct IntegralType
29 {
31  std::numeric_limits<T>::is_integer &&
32  (sizeof(T) == 4 || sizeof(T) == 8)> c;
33 };
34 
35 } // detail
36 } // atomic
37 } // vtk
38 // VTK-HeaderTest-Exclude: vtkAtomicTypeConcepts.h
CompileTimeCheck< std::numeric_limits< T >::is_specialized &&std::numeric_limits< T >::is_integer &&(sizeof(T)==4||sizeof(T)==8)> c