Parameters of make_pair()
- key: Represents the key for the pair object i.e. first value.
- value: Represents the value for the pair object i.e. second value.
std::make_pair() in C++
In C++, std::make_pair() is a standard library function that is used to construct a key-value pair from the given arguments. The type of the pair constructed is deduced automatically from the type of arguments. It is defined as a function template inside the <utility> header file.