ITK  6.0.0
Insight Toolkit
itkIsNumber.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18
19#ifndef itkIsNumber_h
20#define itkIsNumber_h
21
23#include "itkIntTypes.h"
24
25namespace itk
26{
28namespace mpl
29{
36template <typename T>
37struct IsNumber : FalseType
38{};
39
41template <>
42struct IsNumber<unsigned char> : TrueType
43{};
44template <>
45struct IsNumber<signed char> : TrueType
46{};
47template <>
48struct IsNumber<unsigned short> : TrueType
49{};
50template <>
51struct IsNumber<short> : TrueType
52{};
53template <>
54struct IsNumber<int> : TrueType
55{};
56template <>
57struct IsNumber<unsigned int> : TrueType
58{};
59template <>
60struct IsNumber<long> : TrueType
61{};
62template <>
63struct IsNumber<unsigned long> : TrueType
64{};
65template <>
66struct IsNumber<long long> : TrueType
67{};
68template <>
69struct IsNumber<unsigned long long> : TrueType
70{};
71template <>
72struct IsNumber<float> : TrueType
73{};
74template <>
75struct IsNumber<double> : TrueType
76{};
77template <>
78struct IsNumber<long double> : TrueType
79{};
81
82} // end namespace mpl
84} // end namespace itk
85
86#endif // itkIsNumber_h
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....