//===----------------------------------------------------------------------===// // // 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 // //===----------------------------------------------------------------------===// // // template // basic_ostream& // operator<<(basic_ostream& os, // const basic_string_view str); #include #include template struct HasDecl : std::false_type {}; template struct HasDecl(std::declval() << std::declval()))> : std::true_type {}; int main() { static_assert(HasDecl::value, "streaming operator declaration not present"); }