nvwa::dereference Struct Reference

Functor to return objects pointed by a container of pointers. More...

#include <cont_ptr_utils.h>

List of all members.

Public Member Functions

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

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());

Member Function Documentation

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

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated by  doxygen 1.6.2