From 8411810ab5df8f330f9d7cf96a96179375dc4704 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Tue, 2 Jan 2024 02:21:44 -0500 Subject: [PATCH] need to find a better way of doing contains on all containers --- include/blt/compatibility.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/blt/compatibility.h b/include/blt/compatibility.h index 359cd6b..fe5a97b 100644 --- a/include/blt/compatibility.h +++ b/include/blt/compatibility.h @@ -30,6 +30,8 @@ #undef BLT_USE_CPP20 #endif +#define BLT_CONTAINS_IF(container, value) std::find_if(container.begin(), container.end(), value) != container.end() + #define INCLUDE_FS \ #if defined(CXX17_FILESYSTEM) || defined (CXX17_FILESYSTEM_LIBFS) \ #include \