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:09:41 +0000 (09:09 -0700)
commitcf7cf3fec6a302cae96234ee58860ad85432a5e4
treeb41d61f4a5389aad3e817689c9443320629e9805
parent19ab53929019bda87a2fff080b6eba37c731d520
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