mirror of
				https://github.com/boostorg/unordered.git
				synced 2025-10-30 23:31:41 +01:00 
			
		
		
		
	Copyright update. Switch back to the version where the sentinel points to itself. Remove alternative versions of swap. Workaround a borland bug or two. More consistent use of class/swap/template. Avoid a few warnings. Add a no-throw swap to the allocator for exception testing. [SVN r3793]
		
			
				
	
	
		
			25 lines
		
	
	
		
			646 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			646 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
 | |
| // Copyright 2006-2007 Daniel James.
 | |
| // Distributed under the Boost Software License, Version 1.0. (See accompanying
 | |
| // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 | |
| 
 | |
| #include <boost/unordered_set.hpp>
 | |
| #include <boost/unordered_map.hpp>
 | |
| 
 | |
| void foo(boost::unordered_set<int>&,
 | |
|         boost::unordered_map<int, int>&,
 | |
|         boost::unordered_multiset<int>&,
 | |
|         boost::unordered_multimap<int, int>&);
 | |
| 
 | |
| int main()
 | |
| {
 | |
|     boost::unordered_set<int> x1;
 | |
|     boost::unordered_map<int, int> x2;
 | |
|     boost::unordered_multiset<int> x3;
 | |
|     boost::unordered_multimap<int, int> x4;
 | |
| 
 | |
|     foo(x1, x2, x3, x4);
 | |
|     
 | |
|     return 0;
 | |
| }
 |