//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03 // // template struct is_bind_expression #include #include "test_macros.h" template void test(const T&) { static_assert(std::is_bind_expression::value == Expected, ""); #if TEST_STD_VER > 14 static_assert(std::is_bind_expression_v == Expected, ""); #endif } struct C {}; int main() { test(std::bind(C())); test(std::bind(C(), std::placeholders::_2)); test(std::bind(C())); test(1); test(std::placeholders::_2); }