reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::InserterClass< T > Class Template Reference

Allows a (possibly recursive) container of anything with operator<< to be dumped to a stream. More...

#include <Inserter.hxx>

Public Member Functions

 InserterClass (const T &t)
 

Public Attributes

const T & _t
 

Detailed Description

template<class T>
class resip::InserterClass< T >

Allows a (possibly recursive) container of anything with operator<< to be dumped to a stream.

This is particularly useful within a Log call. e.g.

void logNameAddrs(vector<resip::NameAddr>& contacts)
{
DebugLog(<< "Contacts: " << Inserter(contacts));
}
#define DebugLog(args_)
Definition Logger.hxx:128
InserterClass< T > Inserter(const T &t)
Templatized function to construct an instance of InserterClass for a container to be inserted.
Definition Inserter.hxx:312
See also
Inserter()

Definition at line 284 of file Inserter.hxx.

Constructor & Destructor Documentation

◆ InserterClass()

template<class T >
resip::InserterClass< T >::InserterClass ( const T &  t)
inline

Definition at line 287 of file Inserter.hxx.

Member Data Documentation

◆ _t

template<class T >
const T& resip::InserterClass< T >::_t

Definition at line 291 of file Inserter.hxx.


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