forked from boostorg/unordered
Improved support for testing on older versions of gcc.
Link tests. Plus more... [SVN r2980]
This commit is contained in:
@@ -15,4 +15,5 @@ test-suite container-tests
|
||||
[ run set_compile.cpp ]
|
||||
[ run map_compile.cpp ]
|
||||
[ run simple_tests.cpp ]
|
||||
[ run link_test_1.cpp link_test_2.cpp ]
|
||||
;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
// Copyright Daniel James 2006. Use, modification, and distribution are
|
||||
// subject to 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);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
// Copyright Daniel James 2006. Use, modification, and distribution are
|
||||
// subject to 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>& x1,
|
||||
boost::unordered_map<int, int>& x2,
|
||||
boost::unordered_multiset<int>& x3,
|
||||
boost::unordered_multimap<int, int>& x4)
|
||||
{
|
||||
x1.insert(1);
|
||||
x2[2] = 2;
|
||||
x3.insert(3);
|
||||
x4.insert(std::make_pair(4, 5));
|
||||
}
|
||||
Reference in New Issue
Block a user