**UPD:-**   

Value Instances   

 2   3   

 3   2   

 5   1   

I want to limit the count to 1 for all the instances present in the multiset.

```
#include<bits/stdc++.h>
using namespace std;
int main() {
    multiset<int> p1;

    p1.insert(5);
    p1.insert(2);
    p1.insert(3);
    p1.insert(3);
    p1.insert(2);
    p1.insert(2);

    for(auto itr : p1) {

        if(p1.count(itr) > 1)
        p1.erase(itr);

        cout << itr;
    }

}

```

How to fix this ?