树  0.1
数据结构_第6章
Stack::Stack< T > Class Template Referenceabstract

#include <Stack.h>

Inheritance diagram for Stack::Stack< T >:
Collaboration diagram for Stack::Stack< T >:

Public Member Functions

virtual bool isEmpty () const =0
 
virtual void push (const T &elem)=0
 
virtual T pop ()=0
 
virtual T top () const =0
 
virtual ~Stack ()=default
 

Detailed Description

template<class T>
class Stack::Stack< T >

Definition at line 37 of file Stack.h.

Constructor & Destructor Documentation

◆ ~Stack()

template<class T >
virtual Stack::Stack< T >::~Stack ( )
virtualdefault

Member Function Documentation

◆ isEmpty()

template<class T >
virtual bool Stack::Stack< T >::isEmpty ( ) const
pure virtual

◆ pop()

template<class T >
virtual T Stack::Stack< T >::pop ( )
pure virtual

◆ push()

template<class T >
virtual void Stack::Stack< T >::push ( const T &  elem)
pure virtual

◆ top()

template<class T >
virtual T Stack::Stack< T >::top ( ) const
pure virtual

The documentation for this class was generated from the following file: