Board index » cppbuilder » Re: How I translate this in C++ fom Delphi ?
Re: How I translate this in C++ fom Delphi ?
2003-06-24 10:15:09 AM
"Andrei Ariescu" < XXXX@XXXXX.COM >wrote in message
1) Use brute force:
No ... this is not what I want ...
if ( Options.Contains(goRowSelect) && Options.Contains( goEditing ) && ... )
2) or create a new Set containing the items you are looking for, do an
intersection between the sets, and see if the intersection is equal to the
new Set. This is untested code, but the basic idea behind it should be
// begin untested code
// initialize MySet
MySet << goRowSelect << goEditing << goTabs;
// if this test is 'true', Options SHOULD contain goRowSelect, goEditing,
// (it might also contain other elements)
if ( (Options * MySet) == MySet ) ...
// end untested code