//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // // 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(); }