home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
stl2vac.zip
/
STLport-4_5_3.zip
/
STLport-4.5.3
/
test
/
regression
/
pair2.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-12-07
|
482b
|
22 lines
// STLport regression testsuite component.
// To compile as a separate example, please #define MAIN.
#include <utility>
#include <iostream>
#ifdef MAIN
#define pair2_test main
#endif
#if !defined (STLPORT) || defined(__STL_USE_NAMESPACES)
using namespace std;
#endif
int pair2_test(int, char**)
{
cout<<"Results of pair2_test:"<<endl;
pair<int, int> p = make_pair(1, 10);
cout << "p.first = " << p.first << endl;
cout << "p.second = " << p.second << endl;
return 0;
}