This commit is contained in:
elwrcl committed 2026-06-06 13:25:15 +03:00
1 parent 04d4dc8b09
commit 818cab85dc
12511 files changed
+6156641

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/*
* Copyright © 2020 Collabora, Ltd.
* Author: Antonio Caggiano <[email protected]>
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <algorithm>
#define FIND_IF(c, lambda) (std::find_if(std::begin(c), std::end(c), lambda))
#define FIND(c, e) (std::find(std::begin(c), std::end(c), e))
#define CONTAINS(c, e) (FIND(c, e) != std::end(c))
#define CONTAINS_IT(c, it) (it != std::end(c))
#define APPEND(a, b) (a.insert(std::end(a), std::begin(b), std::end(b)))