Or, include the entire definition inside the outer class:
class List { . . . class Iterator { public: Iterator(); string get() const; . . . }; . . . };