Functor to output objects pointed by a container of pointers. More...
#include <cont_ptr_utils.h>
Public Member Functions | |
output_object (_OutputStrm &outs, const _StringType &sep) | |
template<typename _Pointer > | |
void | operator() (const _Pointer &ptr) const |
Functor to output objects pointed by a container of pointers.
A typical usage might be like:
list<Object*> l;
...
for_each(l.begin(), l.end(), output_object<ostream>(cout, " "));
nvwa::output_object< _OutputStrm, _StringType >::output_object | ( | _OutputStrm & | outs, | |
const _StringType & | sep | |||
) | [inline] |
void nvwa::output_object< _OutputStrm, _StringType >::operator() | ( | const _Pointer & | ptr | ) | const [inline] |