// Compile with: //gcc-3.0/bin/g++ try.cpp -I//gcc-3.0/include/g++-v3 -O1 -static -o try #include #include using namespace std; map, int> Map; inline void Insert(pair value) { pair, int>::iterator, bool> InsertionResult = Map.insert(make_pair(value, 0)); InsertionResult.first->second = 1234; } int main() { string strOne = "one"; Insert(make_pair(strOne, false)); string strTwo = "two"; Insert(make_pair(strTwo, false)); return 0; }