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 //===----------------------------------------------------------------------===//
15 #include <type_traits>
20 typedef std::logical_and<int> F;
22 static_assert((std::is_same<int, F::first_argument_type>::value), "" );
23 static_assert((std::is_same<int, F::second_argument_type>::value), "" );
24 static_assert((std::is_same<bool, F::result_type>::value), "" );
29 #if _LIBCPP_STD_VER > 11
30 typedef std::logical_and<> F2;
44 constexpr bool foo = std::logical_and<int> () (36, 36);
45 static_assert ( foo, "" );
47 constexpr bool bar = std::logical_and<> () (36.0, 36);
48 static_assert ( bar, "" );