Content

Showing posts with label STL. Show all posts
Showing posts with label STL. Show all posts

Wednesday, October 7, 2020

Standard Template Library (STL)

STL has four components

  1. Functor
  2. Algorithm Functions
  3. Iterators
  4. Containers

1. Functor : 

  • Go through this link.

2. Algorithm Functions :

3.  Iterators :

  • Go through this link.

4. Containers :

  • Go through this link.

Utility Library :

Extra :


Sunday, July 26, 2020

Standard Template Library (STL) - Part II

Topics :


1. Set :


2. Multi-Set :


3. Map :


4. Multi-Map :


5. Pair :


6. Bit-set :


7. Sort :


*** Sort by second element of map :


8. Next_permutation :

next_permutation(a.begin(), a.end())
prev_permutation(a.begin(), a.end())

9. Reverse :

reverse(a.begin(), a.end())

*** Here let 'a' is a vector...

Standard Template Library (STL) - Part I

Start with this - Link

Topics :