mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 16:24:18 +08:00
extract api agnostic validators to shared remove not needed opencl includes from neo shared Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
23 lines
361 B
C++
23 lines
361 B
C++
/*
|
|
* Copyright (C) 2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <utility>
|
|
|
|
namespace NEO {
|
|
template <typename T = void>
|
|
bool areNotNullptr() {
|
|
return true;
|
|
}
|
|
|
|
template <typename T, typename... RT>
|
|
bool areNotNullptr(T t, RT... rt) {
|
|
return (t != nullptr) && areNotNullptr<RT...>(rt...);
|
|
}
|
|
} // namespace NEO
|