yat
0.14.5pre
|
Adaptor between pointer and pointee interface. More...
#include <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 std::iterator_traits<Pointer>::reference . Pointer must have an operator*
, i.e., Pointer
can be a traditional pointer or an Input Iterator.
The class is designed to be used with boost::transform_iterator
where elements in vec<MyClass*> are copied in to set<MyClass>.
|
inline |