fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<class T>
  5. class A
  6. {
  7. public:
  8. class B
  9. {
  10.  
  11. };
  12. };
  13.  
  14. template<class T>
  15. using B = typename A<T>::B;
  16.  
  17. int main()
  18. {
  19. A<char>::B b1;
  20. B<int> b2;
  21. B<double> b3;
  22. return 0;
  23. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty