All pastes #473978 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2007-05-06 15:01 UTC
rendered paste body
#include <map>using namespace std;template<typename U,typename V>bool GetValueFromMap( const map<U, V> &m, const U &key, V &val ){	map<U, V>::const_iterator iter =  m.find(key);	if( iter == m.end() )		return false;	val = iter->second;	return true;}