-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctional.h
71 lines (50 loc) · 1.13 KB
/
functional.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#pragma once
#include "cstdlib/cstdint.h"
namespace firefly::std {
template <typename Key>
struct hash;
template <>
struct hash<bool> {
size_t operator()(bool _val) const noexcept {
return static_cast<size_t>(_val);
}
};
template <>
struct hash<char>;
template <>
struct hash<signed char>;
template <>
struct hash<unsigned char>;
template <>
struct hash<char8_t>;
template <>
struct hash<char16_t>;
template <>
struct hash<char32_t>;
template <>
struct hash<wchar_t>;
template <>
struct hash<short>;
template <>
struct hash<unsigned short>;
template <>
struct hash<int>;
template <>
struct hash<unsigned int>;
template <>
struct hash<long>;
template <>
struct hash<long long>;
template <>
struct hash<unsigned long>;
template <>
struct hash<unsigned long long>;
template <>
struct hash<float>;
template <>
struct hash<double>;
template <>
struct hash<long double>;
template <class T>
struct hash<T*>;
} // namespace firefly::std