Functor: Dereference

Classes

struct  Dereference< Handle, Result >
 A functor for dereferencing a handle. More...

Functions

template<typename Handle >
Dereference< Handle > dereference ()
 Return a Dereference<Handle>.

Detailed Description


Function Documentation

template<typename Handle >
Dereference<Handle> dereference (  )  [inline]

Return a Dereference<Handle>.

This is a convenience function for constructing a Dereference<Handle>. Instead of writing

  ads::Dereference<int*> deref;
  y = deref(x);

one can write

  y = ads::dereference<int*>()(x);
Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3