We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2db504 commit bcdb456Copy full SHA for bcdb456
src/libcxx/include/concepts
@@ -0,0 +1,30 @@
1
+// -*- C++ -*-
2
+#ifndef _EZCXX_CONCEPTS
3
+#define _EZCXX_CONCEPTS
4
+
5
+#include <type_traits>
6
7
+#pragma clang system_header
8
9
+namespace std {
10
11
+template <class _Tp, class _Up>
12
+concept same_as = is_same<_Tp, _Up>::value && is_same<_Up, _Tp>::value;
13
14
+// arithmetic:
15
16
+template <class _Tp>
17
+concept integral = is_integral_v<_Tp>;
18
19
20
+concept signed_integral = integral<_Tp> && is_signed_v<_Tp>;
21
22
23
+concept unsigned_integral = integral<_Tp> && !signed_integral<_Tp>;
24
25
26
+concept floating_point = is_floating_point_v<_Tp>;
27
28
+} // namespace std
29
30
+#endif // _EZCXX_CONCEPTS
0 commit comments