Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

template<typename T>
QVector< T > & QVector< T >::operator= ( const QVector< T > &  other  )  [inline]

Assigns other to this vector and returns a reference to this vector.

Definition at line 355 of file qvector.h.

References QVector< T >::d.

{
    typename QVector::Data *x = v.d;
    x->ref.ref();
    x = qAtomicSetPtr(&d, x);
    if (!x->ref.deref())
        free(x);
    if (!d->sharable)
        detach_helper();
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index