Skip to content

Standard Template library implementation by oop c++

Notifications You must be signed in to change notification settings

mdadul/STL_implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

STL_implementation

Standard Template library implementation by oop c++

Vector Class Implementation

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

Generic Class

template<class T>
class Vector{
};

Member Function prototype

void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();

Map Implementation

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

Generic Class

template<class T>
class Vector{
};

Member Function prototype

void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();

Set Implementation

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

Generic Class

template<class T>
class Vector{
};

Member Function prototype

void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();

String Implementation

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

Generic Class

template<class T>
class Vector{
};

Member Function prototype

void push(T data);
void pop();
int size();
void update(T data, int index);
int begin();
int end();
void print();

Stack Implementation

Generic Function

template<class T>
class Stack{
};
Function Name activity
init() initialization
push() add an element
pop() delete last element

About

Standard Template library implementation by oop c++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages