1#include<map>
2
3void function2(std::map<int, int> &temp_map); //forward declaration
4
5void function1(){
6 std::map<int, int> my_map; //automatic variable
7 //no need to make it pointer!
8 function2(my_map);
9}
10
11void function2(std::map<int, int> &temp_map){
12 //do stuff with the map
13}
14