1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // UNSUPPORTED: c++98, c++03, c++11 11 12 // <experimental/tuple> 13 14 // template <class T> constexpr size_t tuple_size_v = tuple_size<T>::value; 15 16 // Test with pointer 17 18 #include <experimental/tuple> 19 20 namespace ex = std::experimental; 21 22 int main() 23 { 24 auto x = ex::tuple_size_v<std::tuple<>*>; 25 } 26