C++ STL

Stack

Hi everyone In this tutorial we will talk about Stack So, What is stack actually? Stack is a Last In First Out(LIFO) data structure. STL Stack also works the same way STL stack container’s underlying data structure deque (Double Ended Queue)   Header File Inclusion for stack #include <stack> Declaration #include <stack> stack <int> lifoList; […]

Stack Read More »

List

Hi Everyone In this tutorial we will talk about List. So, what is list actually? List is a doubly linked list container in C++ STL. List is a sequential container of STL. Since, its underlying data structure is doubly linked list, list has a dynamic property regarding memory allocation. Header File Inclusion for list #include

List Read More »

Vector

Hi Everyone ✋ In this tutorial we will talk about Vector. So, what is vector actually? Vector is a dynamic array container of C++ STL. Vector is a sequential container of STL. Array data structure is great for random access. But it has a fixed size array limitation. In a dynamic array, we don’t have

Vector Read More »

Standard Template Library

Hi Everyone ✋ In this tutorial series we will talk about C++ STL in depth. STL stands for Standard Template Library. STL has four components Containers Iterators Algorithms Function Objects     Containers Containers are actually pre implemented data structures provided by C++ to use. These containers help us to write code efficiently without worrying

Standard Template Library Read More »