Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::pair is a container for holding two values of any data type. So, std::pair can be used instead of a struct with two members.
#include <string> |
The function std::make_pair can save typing in creating std::pairs (as it saves you redeclaring the data types).
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.