mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-11-01 03:18:02 +03:00
init
This commit is contained in:
12511 files changed
+6156641
No files matched your search
@@ -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)))
|
||||
Reference in new issue
Block a user