1 // { dg-options "-Wno-deprecated" }
3 #include <backward/hashtable.h>
8 size_t operator()(int const key
) const
16 bool operator()(int const left
, int const right
) const
18 return left
% 2 == right
% 2;
24 typedef std::_Select1st
<std::pair
<int const, int> > extract_type
;
26 __gnu_cxx::hashtable
<std::pair
<int const, int>, int, modulo2_hash
,
27 extract_type
, modulo2_eq
, std::allocator
<int> >
29 table_type
table(4, modulo2_hash(), modulo2_eq(), extract_type(),
30 std::allocator
<int>());
32 table
.insert_equal(std::make_pair(2, 1));
33 table_type::iterator
it(table
.insert_equal(std::make_pair(4, 2)));
34 table
.erase(it
->first
);