Concept of pair

The concept of pair is used in this video but it has not been taught till now (searching and sorting). Is this concept will be taught in upcoming video lectures ? Or otherwise please provide some reference for this topic.

Hello @poorva2145,

  1. Pair is another Sequential Container available in STL which stores pairs. and yes push can be used.
  2. first is keyword used to access the first element of the pair and second is to access another.

You can refer to this link for a better and detailed explanation.

Hope, this would help.
Give a like if you are satisfied.

1 Like