// 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 "../helpers/prefix.hpp" #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; test::value x; m1[x] = x; m2.insert(std::make_pair(x, x)); s1.insert(x); s2.insert(x); }