]> git.puffer.fish Git - matthieu/frr.git/commit
lib: typesafe *_member()
authorDavid Lamparter <equinox@diac24.net>
Sat, 27 Mar 2021 21:05:07 +0000 (22:05 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 19 Oct 2021 12:55:39 +0000 (14:55 +0200)
commitf45897e45c57db80b21e31d44723733a17bfac54
treec5a8bcdf49194dfe78fb2ffc8800997e7bf211f2
parent4a1b3289c7a8abc9858bfd1ac2ced35e8d20dd68
lib: typesafe *_member()

This provides a "is this item on this list" check, which may or may not
be faster than using *_find() for the same purpose.  (If the container
has no faster way of doing it, it falls back to using *_find().)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/typerb.c
lib/typerb.h
lib/typesafe.c
lib/typesafe.h
tests/lib/test_typelist.h