-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathis_integral.hpp
More file actions
35 lines (31 loc) · 2.05 KB
/
is_integral.hpp
File metadata and controls
35 lines (31 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_integral.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: majermou <majermou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/07 16:21:44 by majermou #+# #+# */
/* Updated: 2021/10/19 16:25:12 by majermou ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef IS_INTEGRAL_HPP
#define IS_INTEGRAL_HPP
#include <iostream>
template<typename> struct is_integral: public std::false_type {};
template<> struct is_integral<bool>: public std::true_type {};
template<> struct is_integral<char>: public std::true_type {};
template<> struct is_integral<char32_t>: public std::true_type {};
template<> struct is_integral<char16_t>: public std::true_type {};
template<> struct is_integral<wchar_t>: public std::true_type {};
template<> struct is_integral<signed char>: public std::true_type {};
template<> struct is_integral<short int>: public std::true_type {};
template<> struct is_integral<int>: public std::true_type {};
template<> struct is_integral<long int>: public std::true_type {};
template<> struct is_integral<long long int>: public std::true_type {};
template<> struct is_integral<unsigned char>: public std::true_type {};
template<> struct is_integral<unsigned short int>: public std::true_type {};
template<> struct is_integral<unsigned int>: public std::true_type {};
template<> struct is_integral<unsigned long int>: public std::true_type {};
template<> struct is_integral<unsigned long long int>: public std::true_type {};
#endif // IS_INTEGRAL_HPP