vector_plus is a subclass of the vector class.
vector_plus has no new fields.
Define:
void erase_item(const T& item);
Here is an example of my header file:
Expand|Select|Wrap|Line Numbers
- #ifndef VECTOR_PLUS
- #define VECTOR_PLUS
- #include <vector>
- using namespace std;
- template<class T>
- class vector_plus : public vector<T>
- {
- public:
- vector_plus();
- void erase_item(const T& item);
- };
- #endif
Thank you so much for your help.