hmap: New function hmap_contains().
authorBen Pfaff <blp@nicira.com>
Tue, 20 Mar 2012 22:00:46 +0000 (15:00 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 21 Mar 2012 16:25:06 +0000 (09:25 -0700)
commitf4f9f0868c9150c7b032884f212db1e3bcb6b1fa
treea0bdd1136b45f9624b87390cbd6257fd2fd07aec
parenteef4d7399be65ab0a8d75b3eb448c4c91eb651a9
hmap: New function hmap_contains().

This is useful in a situation where one knows that an hmap_node is in some
hmap, but it's not certain which one, and one needs to know whether it is
in a particular one.  This is not a very common case; I don't see any
potential users in the current tree, although an upcoming commit will add
one.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/hmap.c
lib/hmap.h