Files
compute-runtime/shared/source/helpers/validators.h
Compute-Runtime-Validation 24584d3186 Revert "feature: create single temporary allocation for bcs split"
This reverts commit 6191f5aec8.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-09-07 04:29:28 +02:00

28 lines
479 B
C++

/*
* Copyright (C) 2021-2025 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...);
}
template <typename T, typename... RT>
bool isAnyNullptr(T t, RT... rt) {
return !areNotNullptr(t, rt...);
}
} // namespace NEO