Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » STL multimap 
	
		
		
			| STL multimap [message #17438] | 
			Fri, 15 August 2008 00:40   | 
		 
		
			
				
				
				
					
						  
						Indio
						 Messages: 8 Registered: January 2008  Location: Hungary
						
					 | 
					Promising Member  | 
					 | 
		 
		 
	 | 
 
	
		Hello! 
 
First of all, I'm using the version upp-mingw-712-dev1. I know that is not the latest, but I guess the thing, I ask about here should work there too. 
 
I have to use STL and not NTL for a reason. 
 
I want to use multimap. If I do the usual stuff: 
#include <map>
std::multimap<int, double> mm;
  
This is a simple insert operation: 
mm.insert( pair<int, double>(5, 5.0) );
  
Then I receive the following error message: 
D:\MyApps\skeleton\MainWindow.cpp:386: error: `pair' undeclared (first use this function)
D:\MyApps\skeleton\MainWindow.cpp:386: error: (Each undeclared identifier is reported only once for each function it
	 appears in.)
D:\MyApps\skeleton\MainWindow.cpp:386: error: expected primary-expression before "int"
D:\MyApps\skeleton\MainWindow.cpp:386: error: expected primary-expression before "double"
  
 
It should work. Syntactically it is good. I tested it under MSVS2008. But what can be problem here? 
Thx in advance!
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 16:45:35 CET 2025 
 Total time taken to generate the page: 0.07363 seconds 
 |