ttp9.c
来自「用于进行gcc测试」· C语言 代码 · 共 29 行
C
29 行
// { dg-do compile }// Origin: David Abrahams <dave@boost-consulting.com>// Wolfgang Bangerth <bangerth@ticam.utexas.edu>// PR c++/12170: Deducing template template parameter from nested// class template.template <typename> struct W {};template< template<typename> class F, typename T>int foo(W< F<T> >);template<typename T>struct L { static int const value = sizeof(foo(W<T>())); typedef T type;};template <typename>struct Y { template <typename> struct X { typedef int type; }; typedef typename L<X<int> >::type type;};template struct Y<int>;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?