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

template<class T>
const T & QStack< T >::top (  )  const [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

See also:
pop(), push()

Definition at line 55 of file qstack.h.

References QVector< T >::data(), QVector< T >::isEmpty(), and QVector< T >::size().

{ Q_ASSERT(!this->isEmpty()); return this->data()[this->size()-1]; }


Generated by  Doxygen 1.6.0   Back to index