Category Archives: C++ STL

C++ STL Map Container – std::map

In this tutorial you will learn about STL Map container in C++ i.e., std::map and all functions applicable on it. Map is an associative container. Map satisfies the word “associative”. That means every value in map is associated with a key. All keys are unique. No two mapped values can have same key. The type… Read More »

C++ STL Set Container – std::set

In this tutorial you will learn about STL Set container in C++ i.e. std::set and all functions applicable on it. Set is a associative container. We know that in associative containers each element is unique. So sets are also containers that stores unique elements following in a specific order. The word associative means each value… Read More »

C++ STL Forward List Container – std::forward_list

In this tutorial you will learn about C++ STL forward list i.e., std::forward_list and operations, methods applicable on it. Forward Lists come under sequence containers. Forward List implements singly linked list. Insertion, removal and moving operations are very fast than other containers. Every element of forward list contains its next element address. Main disadvantage of… Read More »

C++ STL List Container – std::list

In this tutorial you will learn about C++ STL list container i.e. std::list and methods which can be applicable on it. List comes under sequence containers. List stores elements in non-contiguous memory locations. List works same as double linked list. It can traverse in both directions. This is the reason list is slow in traversing… Read More »

C++ STL Deque Container – std::deque

Here you will learn about C++ STL Deque container i.e. std::deque and all functions applicable on it. Note: Deque should be pronounced as “deck”. It named because Double Ended Queue (DEQUE). Deques are come under sequence containers. These are double ended with features of expansion and contraction on both the ends. These are similar to… Read More »

C++ STL Vector Container – std::vector

Here you will learn about C++ STL Vector Container i.e. std::vector and various functions applicable on it. Vector, as we discussed earlier vector is dynamic array that grows in one direction. Also Read: C++ STL Array Container – std::array C++ STL Vector Vectors are dynamic arrays. When we insert a new element or delete an element from… Read More »

C++ STL Array Container – std::array

Here you will learn about STL Array Container in C++ i.e. std::array. I Hope you know about C-type arrays (arrays in C language). Since C++ is just extension to C language we can use those. The main property is that, Array contains series of elements of same type placed in contiguous memory locations. i.e suppose we… Read More »

C++ Standard Template Library (STL) – Introduction

In this tutorial you will learn about what is STL in C++, what it provides and overview of all STL items. STL means Standard Template Library. STL is the most crafted libraries among all other libraries in C++. It is heart of C++. It includes containers, algorithms and iterators. C++ Standard Template Library (STL) What… Read More »