I have identified four different ways of inserting elements into a std::map:
std::map
std::map function; function[0] = 42; function.inse
If you want to overwrite the element with key 0
function[0] = 42;
Otherwise:
function.insert(std::make_pair(0, 42));