How can i delete from multiset container
is there any function. i only need delete first and last elements
inserting element in multiset container
is O(n) or o(lgn)?
thanks
deleting from multiset container
Moderator: Board moderators
-
- Experienced poster
- Posts: 111
- Joined: Mon Jan 09, 2006 6:19 pm
- Location: Tehran, Iran
- Contact:
Re: deleting from multiset container
mutiset<int> S ;Artikali wrote:How can i delete from multiset container
is there any function. i only need delete first and last elements
inserting element in multiset container
is O(n) or o(lgn)?
thanks
multiset<int>S::iterator itr ;
S.erase ( itr ) ;// this function erase the elemnt that is pointed to itr in o(nlgn)
In being unlucky I have the record.
-
- Experienced poster
- Posts: 111
- Joined: Mon Jan 09, 2006 6:19 pm
- Location: Tehran, Iran
- Contact: