#include <toast/iterator/dereference_iterator.hpp>
Internally you may have a container of pointers or a container of smart pointers. This will allow you to externally present iterators to the objects so your users don't have to care about the pointers.
If your pointer type is something other than raw pointer or boost::shared_ptr, you may have to specialize toast::pointer_triats for it.
Public Member Functions | |
dereference_iterator (Iterator i) |