libcsdbg  1.28
C++ exception (and generic) stack trace debug library
template<class T>
csdbg::node< T >::node ( const node< T > &  src)
inlineprotected

Object copy constructor.

Parameters
[in]srcthe source object
Exceptions
std::bad_alloc
Note
The object is not added to a container

Definition at line 109 of file node.hpp.

References likely, and csdbg::node< T >::m_data.

109  :
110 m_link(NULL),
111 m_data(NULL)
112 {
113  if ( likely(src.m_data != NULL) )
114  m_data = new T(*src.m_data);
115 }
T * m_data
Node data.
Definition: node.hpp:44
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344
node * m_link
Next node link (direct or XOR link)
Definition: node.hpp:42