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

#include <Stack.hh>

Inheritance diagram for Stack::Stack< T >:
[legend]

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 22 of file Stack.hh.

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: