An open API service indexing awesome lists of open source software.

https://github.com/kinshuk-code-1729/c-plus-plus-stl

This repository contains various codes which depict the C++ STL Functions which I've made while learning C++ Standard Library from unstop.com
https://github.com/kinshuk-code-1729/c-plus-plus-stl

cppstl stl stl-algorithms

Last synced: 8 months ago
JSON representation

This repository contains various codes which depict the C++ STL Functions which I've made while learning C++ Standard Library from unstop.com

Awesome Lists containing this project

README

          

# C++ Standard Template Library

![image](https://user-images.githubusercontent.com/90320839/198088172-469d5af2-0bed-42bc-b5f9-432d0cac96c3.png)

### *The Standard Template Library (STL) is a set of C++ template classes to provide common programming data structures and functions such as lists, stacks, arrays, etc. It is a library of container classes, algorithms, and iterators. It is a generalized library and so, its components are parameterized. Working knowledge of template classes is a prerequisite for working with STL.*

## STL has 4 components :
- **Algorithms**
- **Containers**
- **Functions**
- **Iterators**

## Multisets
> **A multiset is an STL container that can contain multiple objects which have the same value which is stored in a well-defined manner. The multisets are almost similar to sets, except in sets only unique elements are allowed but in multisets, multiple elements with the same values are also allowed.**

![image](https://user-images.githubusercontent.com/90320839/200189157-3d4532ef-a0ca-46d1-bbfc-36d16bd1b259.png)

## *How to use multisets in C++ ??*

- **The STL multisets can be used in the program by adding two header files.**
- **The first is a *set* and the other is an *iterator.***

## Unordered Maps
> **Unordered maps are the containers that contain key-value pairs in a randomised manner.Every key present in the unordered map is distinct though their key values can be the same. The unordered map is implemented internally using hashing.**

![image](https://user-images.githubusercontent.com/90320839/200189172-c51c2f15-3284-43bd-b5a9-630d96d9e869.png)

## *How to use unordered maps in C++ ??*

- **The STL unordered map can be used in the program by adding two header files.**
- **The first is *unordered_map* and the other is an *iterator.***