Replace cds::ref/boost::ref with std::ref, remove cds::unref and cds/ref.h header
[libcds.git] / cds / container / striped_map / std_hash_map_std.h
index 58a8166c5ccc4bfc9c4047895e589651669b0b71..8738c9121900159a653ea4bad8debed770fedde7 100644 (file)
@@ -110,7 +110,7 @@ namespace cds { namespace intrusive { namespace striped_set {
             {
                 std::pair<iterator, bool> res = m_Map.insert( value_type( key, mapped_type() ));
                 if ( res.second )
-                    ::cds::unref(f)( const_cast<value_type&>(*res.first) );
+                    ::f( const_cast<value_type&>(*res.first) );
                 return res.second;
             }
 
@@ -125,7 +125,7 @@ namespace cds { namespace intrusive { namespace striped_set {
             std::pair<bool, bool> ensure( const Q& key, Func func )
             {
                 std::pair<iterator, bool> res = m_Map.insert( value_type( key, mapped_type() ) );
-                cds::unref(func)( res.second, const_cast<value_type&>(*res.first));
+                func( res.second, const_cast<value_type&>(*res.first));
                 return std::make_pair( true, res.second );
             }
 
@@ -135,7 +135,7 @@ namespace cds { namespace intrusive { namespace striped_set {
                 iterator it = m_Map.find( key_type(key) );
                 if ( it == m_Map.end() )
                     return false;
-                ::cds::unref(f)( const_cast<value_type&>(*it) );
+                ::f( const_cast<value_type&>(*it) );
                 m_Map.erase( it );
                 return true;
             }
@@ -146,7 +146,7 @@ namespace cds { namespace intrusive { namespace striped_set {
                 iterator it = m_Map.find( key_type(val) );
                 if ( it == m_Map.end() )
                     return false;
-                ::cds::unref(f)( const_cast<value_type&>(*it), val );
+                ::f( const_cast<value_type&>(*it), val );
                 return true;
             }