map by reference
Moderator: Board moderators
map by reference
could anyone tell me how to pass a map to a function by reference?
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
Code: Select all
void foo(map<int, int> & mp){
}
For millions of years, mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk and we learned to listen...