![]() |
![]() |
![]() |
![]() |
![]() |
|
Next, you must ensure that the iterator member functions have
access to the header and link member variables by declaring the
iterator class to be a friend of both the header class and the
link class:
templateclass link { friend class iterator ; friend class header; ... }; templateclass header { friend class iterator ; ... };