//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // 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 operator()(...) const { return 0; }}; int main(int, char**) { test(std::bind(C())); test(std::bind(C(), std::placeholders::_2)); test(std::bind(C())); test(1); test(std::placeholders::_2); return 0; }