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:07:45 +0000 (09:07 -0700)
commit00d50ff9054edd3554d73c9048ac497bc42429fe
treee788b83e83af747b806398bafdc1f019be223072
parenta007f92ae9f3f0b1b05df2421167f1824ed6f9e9
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