Link to home
Start Free TrialLog in
Avatar of meow00
meow00

asked on

check if all "pair.first" in mySet contains certain value or not?

Hi experts,

In the following psudo code, how do I find if all "pair.first" in mySet contains certain value or not?
Thanks!
-------------------------------------------------------------------
set< pair<int, float> > mySet;
:
// add data to mySet

if( (all pair.first of mySet).find(certainValue) ) {
:      
}
ASKER CERTIFIED SOLUTION
Avatar of Deepu Abraham
Deepu Abraham
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry I should have passd
int i = 8;
" i" you could pass it through a function or make a constant for your test .

Best Regards,
DeepuAbrahamK