Пример #1
0
 binary& operator= (const binary& rhs) {
     if (this != &rhs) {
         m_blob = rhs.m_blob;
         if (m_blob) m_blob->inc_rc();
     }
     return *this;
 }
Пример #2
0
 port& operator= (const port& rhs) {
     if (this != &rhs) {
         release(); m_blob = rhs.m_blob;
         if (m_blob) m_blob->inc_rc();
     }
     return *this;
 }
Пример #3
0
 binary(const binary<Alloc>& rhs) : m_blob(rhs.m_blob) {
     if (m_blob) m_blob->inc_rc();
 }
Пример #4
0
 port(const port& rhs) : m_blob(rhs.m_blob) { if (m_blob) m_blob->inc_rc(); }