aydarbiktimirov

Untitled

Sep 29th, 2011
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. template<typename T>
  2. class VertexList
  3. {
  4.     public:
  5.         class iterator:
  6.             public std::list<std::pair<Vertex<T>, VertexList<T> *> >::iterator
  7.         {
  8.             public:
  9.                 VertexList<T> operator*();
  10.         };
  11.         // ...
  12.         iterator begin()
  13.         {
  14.             return data.begin();
  15.         }
  16.     private:
  17.         std::list<std::pair<Vertex<T>, VertexList<T> *> > data;
  18.  
  19. };
  20.  
  21.  
Advertisement
Add Comment
Please, Sign In to add comment