// Copyright 2009 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 #include namespace test { struct value; struct hash; struct equals; template struct malloc_allocator; typedef boost::unordered_map > > map; typedef boost::unordered_multimap > > multimap; typedef boost::unordered_set > set; typedef boost::unordered_multiset > multiset; struct value {}; struct hash { std::size_t operator()(value const&) const { return 0; } }; struct equals { bool operator()(value const&, value const&) const { return true; } }; } #include "../helpers/allocator.hpp" int main() { test::map m1; test::multimap m2; test::set s1; test::multiset s2; m1[test::value()] = test::value(); m2.insert(std::make_pair(test::value(), test::value())); s1.insert(test::value()); s2.insert(test::value()); }