Back to slide -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'          containers/member-types/ambiguities-2.cpp - Ambiguities resolved.Lecture 6 - slide 14 : 40
Program 3

// Ambiguities resolved.

#include <vector>

int x = 5;

template<typename T>double f(){
  typename T::iterator *x;              // Notice use of typename:  
                                        // Means that the dependent name is a typename.

  // ...
}

int main(){
  f<std::vector<double> >();            // >> is written > > 
                                        // Not necessary in C++11.
                             
}