home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) IBM Corp. 1992 */
- template <class Element, class Key>
- Boolean IAKeyCollection < Element, Key >::
- containsAllKeysFrom (IACollection < Element > const& collection) const
- { Boolean result = True;
- ICursor *cursor = collection.newCursor ();
- forCursor (*cursor) {
- if (! containsElementWithKey (key (collection.elementAt (*cursor)))) {
- result = False;
- break;
- }
- }
- delete cursor;
- return result;
- };
-