1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
17 struct __two {char __lx; char __lxx;};
18 template <class _Up> static __two __test(...);
19 template <class _Up> static char __test(typename _Up::is_transparent* = 0);
21 static const bool value = sizeof(__test<_Tp>(0)) == 1;
26 #if _LIBCPP_STD_VER > 11
28 static_assert ( !is_transparent<std::logical_and<int>>::value, "" );
29 static_assert ( !is_transparent<std::logical_and<std::string>>::value, "" );
30 static_assert ( is_transparent<std::logical_and<void>>::value, "" );
31 static_assert ( is_transparent<std::logical_and<>>::value, "" );
33 static_assert ( !is_transparent<std::logical_or<int>>::value, "" );
34 static_assert ( !is_transparent<std::logical_or<std::string>>::value, "" );
35 static_assert ( is_transparent<std::logical_or<void>>::value, "" );
36 static_assert ( is_transparent<std::logical_or<>>::value, "" );
38 static_assert ( !is_transparent<std::logical_not<int>>::value, "" );
39 static_assert ( !is_transparent<std::logical_not<std::string>>::value, "" );
40 static_assert ( is_transparent<std::logical_not<void>>::value, "" );
41 static_assert ( is_transparent<std::logical_not<>>::value, "" );