Back to notes -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    Same program - now with use of typename as prefix of 'nested dependent type names'.Lecture 5 - slide 28 : 39
Program 2
#include <iostream>
#include <string>
#include <list>

int main(){
  using namespace std;

  list<char> lc;
  lc.push_back('a'); lc.push_back('b'); lc.push_back('e');

  typename list<char>::value_type x = 'c';               // A complicated way to denote the type char
  typename list<char>::iterator lc_it = lc.begin();      // The iterator type of list<char>
  typename list<char>::size_type sz = lc.size();         // The size type of list<char>
}