/*
This file is a part of libcds - Concurrent Data Structures library
- (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+ (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
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>
#define CDSSTRESS_StdSet( fixture, test_case, key_type, value_type ) \
CDSSTRESS_StdSet_case( fixture, test_case, StdSet_Spin, key_type, value_type ) \
- CDSSTRESS_StdSet_case( fixture, test_case, StdSet_Mutex, key_type, value_type ) \
CDSSTRESS_StdSet_case( fixture, test_case, StdHashSet_Spin, key_type, value_type ) \
- CDSSTRESS_StdSet_case( fixture, test_case, StdHashSet_Mutex, key_type, value_type )
#endif // #ifndef CDSUNIT_SET_TYPE_STD_H