function std::make pair

std::make_pair is a function defined by the C++ Standard Library. It is a helper function for creating an object of type std::pair.

Include  to use std::make_pair.

template pair make_pair(First first, Second second);

Using std::make_pair is generally easier than creating a std::pair directly because function templates can take advantage of argument deduction.

See also:, std::pair