namespace ci = cds::intrusive;
namespace co = cds::opt;
+ template <typename T>
+ struct get_int_key
+ {
+ int operator()( T const & v ) const
+ {
+ return v.key();
+ }
+ };
+
+ template <>
+ struct get_int_key<int>
+ {
+ int operator()( int i ) const
+ {
+ return i;
+ }
+ };
+
// MichaelHashSet
class IntrusiveStripedSetHdrTest: public CppUnitMini::TestCase
{
}
};
- template <typename T>
- struct get_int_key
- {
- int operator()( T const & v ) const
- {
- return v.key();
- }
- };
-
- template <>
- struct get_int_key<int>
- {
- int operator()( int i ) const
- {
- return i;
- }
- };
-
struct less2 {
template <typename Item>
bool operator()( Item const& e, find_key const& k ) const