Well, it may be easiest if you can convince the library author to augment the class template with iterator support. If that cannot be done, then one way out is to write your own iterator class...