cpp-common/bt2c: add bt2c::contains()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Mar 2024 01:03:05 +0000 (21:03 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Mar 2024 01:03:05 +0000 (21:03 -0400)
commit237a48ad36b6aa04b32e4c41f22ce46c7245604f
tree0d168e51a2bcd66622fe9007db8496b834888edb
parent9b19ad784340745dc43b42f3c6225f0e2dadb21b
cpp-common/bt2c: add bt2c::contains()

This new function template returns whether or not some STL container
contains some value instead of using the awkward find() and end()
methods each time.

Similar to new STL contains() methods of C++20.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Idea480f9001272dfaf1dc0df60251983be8f3962
src/Makefile.am
src/cpp-common/bt2c/contains.hpp [new file with mode: 0644]
This page took 0.025828 seconds and 4 git commands to generate.