OrderedBagTIsSupersetOf Method |
Determines if this bag is a superset of another bag. Neither bag is modified.
This bag is a superset of otherBag if every element in
otherBag is also in this bag, at least the same number of
times.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic bool IsSupersetOf(
OrderedBag<T> otherBag
)
public:
bool IsSupersetOf(
OrderedBag<T>^ otherBag
)
Parameters
- otherBag
- Type: X3Platform.CollectionsOrderedBagT
OrderedBag to compare to.
Return Value
Type:
BooleanTrue if this is a superset of
otherBag.
Exceptions
RemarksIsSupersetOf is computed in time O(M log N), where M is the size of the
otherBag, and N is the size of the this set.
See Also