Using multiset as an argument in a function

Hello!

I wonder how I would go about using a multiset in a function ?
How would I declare it?
Last edited on
First: You may look at this http://www.cplusplus.com/forum/beginner/41927/
You find several examples there

What is it that you're trying to accomplish?

1
2
3
4
5
6
void Foo()
{
  std::multiset<int> bar; // The key is of type 'int' in this case

  bar.insert(100);
}
Topic archived. No new replies allowed.