{
std::pair<iterator, bool> res = m_Map.insert( value_type( key, mapped_type() ) );
if ( res.second )
- ::cds::unref(f)( *res.first );
+ ::f( *res.first );
return res.second;
}
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, *res.first );
+ func( res.second, *res.first );
return std::make_pair( true, res.second );
}
iterator it = m_Map.find( key_type(key) );
if ( it == m_Map.end() )
return false;
- cds::unref(f)( *it );
+ f( *it );
m_Map.erase( it );
return true;
}
iterator it = m_Map.find( key_type(val) );
if ( it == m_Map.end() )
return false;
- cds::unref(f)( *it, val );
+ f( *it, val );
return true;
}