//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // reference_wrapper // check for member typedef type #include #include class C {}; int main() { static_assert((std::is_same::type, C>::value), ""); static_assert((std::is_same::type, void ()>::value), ""); static_assert((std::is_same::type, int* (double*)>::value), ""); static_assert((std::is_same::type, void(*)()>::value), ""); static_assert((std::is_same::type, int*(*)(double*)>::value), ""); static_assert((std::is_same::type, int*(C::*)(double*)>::value), ""); static_assert((std::is_same::type, int (C::*)(double*) const volatile>::value), ""); }