- //文件名:CHAPTER10-15.cpp
- #include <map>
- #include <iostream>
- #if _MSC_VER > 1020 // if VC++ version is > 4.2
- using namespace std; // std c++ libs implemented in std
- #endif
- void main( )
- {
- map <int, int> m1;
- map <int, int> :: size_type i;
- i = m1.max_size( );
- cout << "The maximum possible length "
- << "of the map is " << i << "."
- << endl << "(Magnitude is machine specific.)";
- }