Generic.h File Reference
#include "dlink.h"
#include <ostream>
Include dependency graph for Generic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  unary_function< _Arg, _Result >
 
class  InstanceToSingletonAdapter< C >
 
struct  PointerPrinter< Pointer >
 

Functions

template<class L , class T >
T & for_each (L const &head, T &visitor)
 
template<class T >
T & for_each (dlink_list const &collection, T &visitor)
 
template<class InputIterator , class Visitor >
Visitor & for_each (InputIterator from, InputIterator to, Visitor &visitor)
 

Function Documentation

◆ for_each() [1/3]

template<class T >
T & for_each ( dlink_list const &  collection,
T &  visitor 
)

Definition at line 32 of file Generic.h.

References dlink_list::head, and node::next.

◆ for_each() [2/3]

template<class InputIterator , class Visitor >
Visitor & for_each ( InputIterator  from,
InputIterator  to,
Visitor &  visitor 
)

Definition at line 72 of file Generic.h.

◆ for_each() [3/3]

template<class L , class T >
T & for_each ( L const &  head,
T &  visitor 
)

Definition at line 23 of file Generic.h.

References head, and node::next.

Referenced by PrintHex(), and testHdrVisit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors