Standard Template library implementation by oop c++
| Function Name | activity |
|---|---|
| push() | add an element |
| pop() | delete last element |
| size() | show the size of vector |
| begin() | return the first index no. |
| end() | return the last index no. |
| update() | update an element at any index |
template<class T>
class Vector{
};void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();| Function Name | activity |
|---|---|
| push() | add an element |
| pop() | delete last element |
| size() | show the size of vector |
| begin() | return the first index no. |
| end() | return the last index no. |
| update() | update an element at any index |
template<class T>
class Vector{
};void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();| Function Name | activity |
|---|---|
| push() | add an element |
| pop() | delete last element |
| size() | show the size of vector |
| begin() | return the first index no. |
| end() | return the last index no. |
| update() | update an element at any index |
template<class T>
class Vector{
};void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();| Function Name | activity |
|---|---|
| push() | add an element |
| pop() | delete last element |
| size() | show the size of vector |
| begin() | return the first index no. |
| end() | return the last index no. |
| update() | update an element at any index |
template<class T>
class Vector{
};void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();template<class T>
class Stack{
};| Function Name | activity |
|---|---|
| init() | initialization |
| push() | add an element |
| pop() | delete last element |