yat
0.10.4pre
|
Adaptor between pointer and pointee interface. More...
#include </scratch/bob/jari/tmp/pristine/yat-0.10.x/yat/utility/stl_utility.h>
Public Member Functions | |
Dereferencer (void) | |
constructor | |
std::iterator_traits< Pointer > ::reference | operator() (Pointer ti) const |
Adaptor between pointer and pointee interface.
Functor takes a pointer and returns a reference to the instance pointer is pointing to. Return type is decided by <a href=http://www.sgi.com/tech/stl/iterator_traits.html> std::iterator_traits<Pointer>::reference </a>. Pointer must have an \c operator*, i.e., \c Pointer can be a traditional pointer or an <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>. The class is designed to be used with boost::transform_iterator
where elements in vec<MyClass*> are copied in to set<MyClass>.
|
inline |