dereference Struct Reference

#include <cont_ptr_utils.h>


Detailed Description

Functor to return objects pointed by a container of pointers.

A typical usage might be like:

 vector<Object*> v;
 ...
 transform(v.begin(), v.end(),
           ostream_iterator<Object>(cout, " "),
           dereference());

Definition at line 55 of file cont_ptr_utils.h.


Public Member Functions

template<typename _Tp>
const _Tp & operator() (const _Tp *__ptr) const

Member Function Documentation

template<typename _Tp>
const _Tp& dereference::operator() ( const _Tp *  __ptr  )  const [inline]

Definition at line 58 of file cont_ptr_utils.h.

00059     {
00060         return *__ptr;
00061     }


The documentation for this struct was generated from the following file:

Generated on Wed May 5 00:06:40 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6