fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5.  
  6.  
  7. template< typename Type >
  8. class FooBar
  9. {
  10. public:
  11. std::vector< Type > bar;
  12. };
  13.  
  14. template<typename T>
  15. using vt = typename decltype(FooBar<T>::bar)::value_type;
  16.  
  17.  
  18. int main() {
  19. // your code goes here
  20. vt<int> v = 42;
  21. return 0;
  22. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty