File tree Expand file tree Collapse file tree 8 files changed +91
-6
lines changed Expand file tree Collapse file tree 8 files changed +91
-6
lines changed Original file line number Diff line number Diff line change 1
1
// issue #850
2
2
3
- #include < type_traits>
3
+ namespace std
4
+ {
5
+ template <bool C, typename T = void >
6
+ struct enable_if
7
+ {
8
+ using type = T;
9
+ };
10
+
11
+ template <bool C, typename T = void >
12
+ using enable_if_t = typename enable_if<C, T>::type;
13
+
14
+ template <typename T>
15
+ struct is_class
16
+ {
17
+ static constexpr bool value = true ;
18
+ };
19
+
20
+ template <typename T>
21
+ bool is_class_v = is_class<T>::value;
22
+ }
4
23
5
24
template <typename T>
6
25
void f (std::enable_if_t <std::is_class_v<T>>);
Original file line number Diff line number Diff line change
1
+ exclude-symbols :
2
+ - ' std::**'
Original file line number Diff line number Diff line change 1
1
// issue #849
2
2
3
- #include < type_traits>
3
+ namespace std
4
+ {
5
+ template <bool C, typename T = void >
6
+ struct enable_if
7
+ {
8
+ using type = T;
9
+ };
10
+
11
+ template <bool C, typename T = void >
12
+ using enable_if_t = typename enable_if<C, T>::type;
13
+
14
+ template <typename T>
15
+ struct is_class
16
+ {
17
+ static constexpr bool value = true ;
18
+ };
19
+
20
+ template <typename T>
21
+ bool is_class_v = is_class<T>::value;
22
+ }
4
23
5
24
template <typename T>
6
25
std::enable_if_t <std::is_class_v<T>, int > f ();
Original file line number Diff line number Diff line change
1
+ exclude-symbols :
2
+ - ' std::**'
Original file line number Diff line number Diff line change 1
- #include < type_traits>
2
- #include < stdexcept>
1
+ namespace std
2
+ {
3
+ template <bool C, typename T = void >
4
+ struct enable_if
5
+ {
6
+ using type = T;
7
+ };
8
+
9
+ template <bool C, typename T = void >
10
+ using enable_if_t = typename enable_if<C, T>::type;
11
+
12
+ template <typename T>
13
+ struct is_integral
14
+ {
15
+ static constexpr bool value = true ;
16
+ };
17
+
18
+ template <typename T>
19
+ bool is_integral_v = is_integral<T>::value;
20
+ }
3
21
4
22
/* * Computes the square root of an integral value.
5
23
Original file line number Diff line number Diff line change
1
+ exclude-symbols :
2
+ - ' std::**'
Original file line number Diff line number Diff line change 1
- #include < type_traits>
2
- #include < stdexcept>
1
+ namespace std
2
+ {
3
+ template <bool C, typename T = void >
4
+ struct enable_if
5
+ {
6
+ using type = T;
7
+ };
8
+
9
+ template <bool C, typename T = void >
10
+ using enable_if_t = typename enable_if<C, T>::type;
11
+
12
+ template <typename ...Ts>
13
+ using void_t = void ;
14
+
15
+ template <typename T>
16
+ struct is_integral
17
+ {
18
+ static constexpr bool value = true ;
19
+ };
20
+
21
+ template <typename T>
22
+ bool is_integral_v = is_integral<T>::value;
23
+ }
3
24
4
25
// / Enabled via return type
5
26
template <class T >
Original file line number Diff line number Diff line change 1
1
warn-if-doc-error : false
2
2
warn-no-paramdoc : false
3
+ exclude-symbols :
4
+ - ' std::**'
You can’t perform that action at this time.
0 commit comments