libcsdbg  1.28
C++ exception (and generic) stack trace debug library
tracer & csdbg::tracer::operator= ( const tracer rval)
protectedvirtual

Assignment operator.

Parameters
[in]rvalthe assigned object
Returns
*this
Exceptions
std::bad_alloc

Definition at line 542 of file tracer.cpp.

References m_plugins, m_proc, and unlikely.

543 {
544  if ( unlikely(this == &rval) )
545  return *this;
546 
547 #ifdef CSDBG_WITH_PLUGIN
548  *m_plugins = *rval.m_plugins;
549 #endif
550 
551  *m_proc = *rval.m_proc;
552  return *this;
553 }
chain< plugin > * m_plugins
Instrumentation plugins.
Definition: tracer.hpp:48
process * m_proc
Process handle.
Definition: tracer.hpp:45
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
Definition: config.hpp:349