Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

template<class C>
bool stdx::auto_ref_ptr< C >::operator== ( const auto_ref_ptr< C > &  that  )  const [inline]

Compares this auto_ref_ptr instance with another instance and returns true if both instances manage the same or NULL pointer.

Note that this method compares pointer values only, it doesn't try to compare objects themselves. Doing otherwise would a) break the common 'pointer to something' comparison semantics auto_ref_ptr tries to follow and b) require to define the comparison operator in the managed class which is not always possible. You may analyze pointed objects yourself if you need more precise comparison.

that Instance to compare this instance with.

Definition at line 211 of file cpputils.h.

References stdx::auto_ref_ptr< C >::m.

        return m == that.m;

Generated by  Doxygen 1.6.0   Back to index