struct traits_FeldmanHashMap_stdhash : public cc::feldman_hashmap::traits
{
- typedef std::hash< Key > hash;
- typedef map::cmp<Key> compare;
+ typedef std::hash< Key > hash;
+ typedef std::less<size_t> less;
};
typedef FeldmanHashMap< cds::gc::HP, Key, Value, traits_FeldmanHashMap_stdhash > FeldmanHashMap_hp_stdhash;
struct traits_FeldmanHashMap_stdhash_stat: traits_FeldmanHashMap_stdhash
{
typedef cc::feldman_hashmap::stat<> stat;
- typedef map::less<Key> less;
+ typedef std::less<size_t> less;
};
typedef FeldmanHashMap< cds::gc::HP, Key, Value, traits_FeldmanHashMap_stdhash_stat > FeldmanHashMap_hp_stdhash_stat;
unsigned int i = 0;
size_t const nNormalize = size_t(-1) / ( fixture.s_nSetSize * 2);
+ typedef typename Set::value_type value_type;
+
size_t nRand = 0;
while ( !time_elapsed()) {
nRand = cds::bitop::RandXorShift(nRand);
return base_class::find( v ) != base_class::end();
}
- bool insert( value_type const& v )
+ template <typename Key>
+ bool insert( Key const& k )
{
scoped_lock al( m_lock );
- return base_class::insert( v ).second;
+ return base_class::insert( value_type( k )).second;
}
template <typename Key, typename Func>