I think you can use an iterator to do this.
void assign( K const& keyBegin, K const& keyEnd, V const& val )
for( auto it = m_map.find( keyBegin ); * it != keyEnd; ++it )
* it = val;
I think that will get you close. I'm not sure because I haven't tried it with a compiler.