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) ) {
:
}
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
int i = 8;
" i" you could pass it through a function or make a constant for your test .
Best Regards,
DeepuAbrahamK