//===----------------------------------------------------------------------===// // // 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 // struct unwrap_reference; // // template // using unwrap_reference_t = typename unwrap_reference::type; // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 #include #include template void check_equal() { static_assert(std::is_same_v::type, Expected>); static_assert(std::is_same_v::type, std::unwrap_reference_t>); } template void check() { check_equal(); check_equal(); check_equal(); check_equal(); check_equal, T&>(); check_equal, T const&>(); } struct T { }; int main() { check(); check(); check(); check(); check(); check(); }