X std::make_pair

Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::make_pair

 

std::make_pair is an STL function to create a std::pair.

 

#include <utility>

int main()
{
  std::pair<int,int> p;
  p = std::make_pair(3,9);
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict