fork download
  1. #include <iostream>
  2.  
  3. #include <vector>
  4. #include <iterator>
  5.  
  6.  
  7. template<typename _Tp, typename _Alloc = std::allocator<_Tp> >
  8. class PtrVector
  9. {
  10. private:
  11. typedef std::vector<_Tp, _Alloc> VectrorT;
  12. typedef typename VectrorT::const_iterator VTConstIter; // also works
  13.  
  14. public:
  15.  
  16. typename VectrorT::const_iterator test(){} // also works
  17. VTConstIter test2(){}
  18.  
  19. };
  20.  
  21.  
  22. int main() {
  23. return 0;
  24. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty