File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -368,6 +368,18 @@ template<class T>
368368using decay_t = T; // SIMPLIFIED typedef
369369#endif
370370
371+ #if CPPREFERENCE_SIMPLIFY_TYPEDEFS
372+
373+ template<bool, class T = void> struct enable_if {
374+ typedef int type; // SIMPLIFIED type
375+ };
376+ #if CPPREFERENCE_STDVER >= 2014
377+ template<bool, class T = void>
378+ using enable_if_t = int; // SIMPLIFIED typedef
379+ #endif
380+
381+ #else
382+
371383template<bool, class T = void> struct enable_if {};
372384
373385template<class T>
@@ -379,6 +391,8 @@ template<bool B, class T = void>
379391using enable_if_t = typename enable_if<B, T>::type;
380392#endif
381393
394+ #endif // CPPREFERENCE_SIMPLIFY_TYPEDEFS
395+
382396template<bool, class T, class F> struct conditional {
383397 typedef int type; // SIMPLIFIED type
384398};
You can’t perform that action at this time.
0 commit comments