{
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;
}
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 );
}
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;
}
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;
}