Advertisement
frasl

Untitled

Feb 8th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1.     // STRUCT TEMPLATE enable_if
  2. template<bool _Test,
  3.     class _Ty = void>
  4.     struct enable_if
  5.     {   // type is undefined for assumed !_Test
  6.     };
  7.  
  8. template<class _Ty>
  9.     struct enable_if<true, _Ty>
  10.     {   // type is _Ty for _Test
  11.     using type = _Ty;
  12.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement